You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Alexey Gorbachev <x1...@inbox.ru> on 2015/04/13 06:43:31 UTC
Re[3]: Debugging entity-auto
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 <x1...@inbox.ru>:
>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 < nicolas.malin@nereide.fr >:
>>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
>