Debugging entity-auto

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
x1
Reply | Threaded
Open this post in threaded view
|

Debugging entity-auto

x1
 Hello, everyone!
I'm new in ofbiz, and I've problems with entity-auto create function. It doesn't work. I want to debug it, but I don't know where ( class and function) to set breakpoint.
Could you help me?
Thanks a lot.

--
Best regards,
Alexey Gorbachev.
Reply | Threaded
Open this post in threaded view
|

Re: Debugging entity-auto

Nicolas Malin-2
Le 04/04/2015 12:31, Alexey Gorbachev a écrit :
>   Hello, everyone!
> I'm new in ofbiz, and I've problems with entity-auto create function. It doesn't work. I want to debug it, but I don't know where ( class and function) to set breakpoint.
> Could you help me?
> Thanks a lot.
>
Hello Alexey,

Two possibilities :
  * see : org.ofbiz.service.engine.EntityAutoEngine
  * post your service definition

Nicolas
x1
Reply | Threaded
Open this post in threaded view
|

Re[2]: Debugging entity-auto

x1
 It seems that program even didn't get into org.ofbiz.service.engine.EntityAutoEngine because my breakpoints inside this class were not used.

service:
    <service name="createTest" default-entity-name="Test" engine="entity-auto" invoke="create" auth="true">
         <description>create a test</description>
         <!-- <permission-service service-name="basePermissionCheck" main-action="CREATE"/> -->
         <auto-attributes include="pk" mode="IN" optional="false"/>    
         <attribute name="idf" mode="IN" type="id-ne" optional="false"/>
         <attribute name="number" mode="IN" type="numeric" optional="false"/>
    </service>
entity
    <entity entity-name="Test" package-name="org.ofbiz.rtest" title="One record for each test element">
        <field name="idf" type="id-ne"></field>
        <field name="number" type="numeric"></field>

        <prim-key field="idf"/>
    </entity>

Alexey



Суббота,  4 апреля 2015, 19:25 +02:00 от Nicolas Malin <[hidden email]>:

>Le 04/04/2015 12:31, Alexey Gorbachev a écrit :
>>   Hello, everyone!
>> I'm new in ofbiz, and I've problems with entity-auto create function. It doesn't work. I want to debug it, but I don't know where ( class and function) to set breakpoint.
>> Could you help me?
>> Thanks a lot.
>>
>Hello Alexey,
>
>Two possibilities :
>  * see : org.ofbiz.service.engine.EntityAutoEngine
>  * post your service definition
>
>Nicolas

x1
Reply | Threaded
Open this post in threaded view
|

Re[3]: Debugging entity-auto

x1
 Problem solved. Problem in my code was  with  conversion of values from string to other types.
Best regards, Alexey Gorbachev.

Суббота,  4 апреля 2015, 21:08 +03:00 от Alexey Gorbachev <[hidden email]>:

>It seems that program even didn't get into org.ofbiz.service.engine.EntityAutoEngine because my breakpoints inside this class were not used.
>
>service:
>    <service name="createTest" default-entity-name="Test" engine="entity-auto" invoke="create" auth="true">
>         <description>create a test</description>
>         <!-- <permission-service service-name="basePermissionCheck" main-action="CREATE"/> -->
>         <auto-attributes include="pk" mode="IN" optional="false"/>    
>         <attribute name="idf" mode="IN" type="id-ne" optional="false"/>
>         <attribute name="number" mode="IN" type="numeric" optional="false"/>
>    </service>
>entity
>    <entity entity-name="Test" package-name="org.ofbiz.rtest" title="One record for each test element">
>        <field name="idf" type="id-ne"></field>
>        <field name="number" type="numeric"></field>
>
>        <prim-key field="idf"/>
>    </entity>
>
>Alexey
>
>
>
>Суббота,  4 апреля 2015, 19:25 +02:00 от Nicolas Malin < [hidden email] >:
>>Le 04/04/2015 12:31, Alexey Gorbachev a écrit :
>>>   Hello, everyone!
>>> I'm new in ofbiz, and I've problems with entity-auto create function. It doesn't work. I want to debug it, but I don't know where ( class and function) to set breakpoint.
>>> Could you help me?
>>> Thanks a lot.
>>>
>>Hello Alexey,
>>
>>Two possibilities :
>>  * see : org.ofbiz.service.engine.EntityAutoEngine
>>  * post your service definition
>>
>>Nicolas
>