state-of-the art attribute initialization in persistent pojos?

2007-04-12 Thread Hans J. Prueller
hi, as you know I am switching from EJB2.1 CMP to JPA (OpenJPA). I'd like to know the preferred way to perform attribute initialisation of newly created entity instances, e.g. we initialized our EJB2.1 CMP entity beans with ejbCreate(String cid, Integer someOtherValue) { setabc();

Re: state-of-the art attribute initialization in persistent pojos?

2007-04-12 Thread Craig L Russell
Hi Hans, On Apr 12, 2007, at 8:43 AM, Hans J. Prueller wrote: hi, as you know I am switching from EJB2.1 CMP to JPA (OpenJPA). I'd like to know the preferred way to perform attribute initialisation of newly created entity instances, e.g. we initialized our EJB2.1 CMP entity beans with

Re: state-of-the art attribute initialization in persistent pojos?

2007-04-12 Thread Thomas Risberg
I thought the no-arg constructor had to be public or protected - see 2.1 Requirements on the Entity Class section where this is mentioned. If that's not the case so much better, but I have been adding a protected constructor in my entities. Cheers, Thomas Craig L Russell wrote: Hi Hans, On