Yes. Classes are enhanced at build time as a task in the Maven build process.

I suspect the issue may be related to the fact I've needed to turn off
use of the detached state fields in order for the BlazeDS
serialization to work properly.

-jmh

On Fri, Aug 21, 2009 at 4:26 AM, Jean-Baptiste BRIAUD --
Novlog<j-b.bri...@novlog.com> wrote:
> Hi Jason,
>
> How are you enhancing your POJOs ?
> If you are not enhancing them at build time, please do it and give us some
> news.
>
> On Aug 21, 2009, at 05:38 , jason.m.hanna wrote:
>
>>
>> Hi All,
>>
>> I'm having some trouble with my OpenJPA application and could use some
>> help.
>>
>> I've got a web-based application using Flex and BlazeDS to front-end my
>> web
>> container running Tomcat, Spring, OpenJPA, and a few other technologies.
>> My
>> back-end database is PostgreSQL.
>>
>> I've got a DAO layer that works with a number of annotated POJOs, and
>> everything has been working fairly smoothly until I just tried to merge a
>> detached object and set its Date (db timestamp) to null.
>>
>> Somewhat surprisingly, the new null value seems to go undetected by JPA
>> and
>> the field is never included in the generated update statement. Hence the
>> date is not removed from my returned object.
>>
>> Because I'm using Flex and BlazeDS, my POJOs are annotated to disable
>> detached state field use.
>>
>> I'm running this way as the documentation seemed to suggest this should
>> work
>> w/o a detached state field - plus it avoids serialization issues in
>> BlazeDS
>> and ActionScript caused by the detached state field.
>>
>> Is this a bug I'm seeing or how the system is supposed to work?
>>
>> Versions, etc. as follows:
>> OpenJPA 1.2.1 (classes enhanced @ build)
>> JDK 1.6.x
>> PostgreSQL 8.3
>> Tomcat 6.x
>> Flex 3.3
>>
>> Let me know if you need more info.
>>
>> Thanks!
>> -jmh
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://n2.nabble.com/Issue-Merging-Object-w-Null-Timestamp-when-Detached-State-Field-Disabled-tp3484177p3484177.html
>> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>>
>
>

Reply via email to