You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by noboby <no...@gmail.com> on 2010/07/01 20:28:08 UTC

when pcVersionInit will be added by the enhancer

I am using openjpa 1.2.x with openejb. Working with one particular entity, i
noticed that pcVersionInit showed up in SQL when retrieving it from the
database. Of course there is no such column in the db and an
PersistenceException is thrown. This blocks me from further work. However,
for another simple entity, it worked well. I am pretty lost here. Can
someone show me the direction to look here.

Thanks!
NB
-- 
View this message in context: http://openjpa.208410.n2.nabble.com/when-pcVersionInit-will-be-added-by-the-enhancer-tp5244712p5244712.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: when pcVersionInit will be added by the enhancer

Posted by Rick Curtis <cu...@gmail.com>.
Can you create an example Entity model that is similar enough to recreate the
problem
without giving away your IP?

Also, are you using build time or runtime enhancement?
-- 
View this message in context: http://openjpa.208410.n2.nabble.com/when-pcVersionInit-will-be-added-by-the-enhancer-tp5244712p5260229.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: when pcVersionInit will be added by the enhancer

Posted by noboby <no...@gmail.com>.
Rick,

Thanks for replying. There is IP issue so I could just post the entity class
here. It has two layers of mapped super class, many @OneToOne, @JoinColumn,
@ManyToOne, @Temporal, @Email, @Trantient etc. This also adds to the puzzle.
We use DAOs. When I test DAOs as POJO, the tests run well. After I put the
DAOs behind an stateless EJB and test with OpenEJB, the tests fail with this
error from entityManager.find(entityClass, stringKey) with this particular
entity.

NB

On Thu, Jul 1, 2010 at 3:12 PM, Rick Curtis [via OpenJPA] <
ml-node+5244877-674178377-575861@n2.nabble.com<ml...@n2.nabble.com>
> wrote:

> This sounds like it may be releated to a JIRA[1] which I fixed in trunk.
> Can
> you post the Entity that you are having problems with?
>
> Thanks,
> Rick
>
> [1] https://issues.apache.org/jira/browse/OPENJPA-1704
>
>
> ------------------------------
>  View message @
> http://openjpa.208410.n2.nabble.com/when-pcVersionInit-will-be-added-by-the-enhancer-tp5244712p5244877.html
> To unsubscribe from when pcVersionInit will be added by the enhancer, click
> here< (link removed) >.
>
>
>

-- 
View this message in context: http://openjpa.208410.n2.nabble.com/when-pcVersionInit-will-be-added-by-the-enhancer-tp5244712p5245326.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: when pcVersionInit will be added by the enhancer

Posted by Rick Curtis <cu...@gmail.com>.
This sounds like it may be releated to a JIRA[1] which I fixed in trunk. Can
you post the Entity that you are having problems with?

Thanks,
Rick

[1] https://issues.apache.org/jira/browse/OPENJPA-1704