openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Linskey" <plins...@bea.com>
Subject RE: Get primary key from persistent bean
Date Tue, 12 Dec 2006 03:21:39 GMT
> On Dec 11, 2006, at 6:03 PM, Craig L Russell wrote:
> 
> > Hi Dain,
> >
> > I've never seen an @Entity without an @Id annotation. I don't  
> > believe it is a valid JPA mapping without an @Id. That said, it's  
> > not required to be named Id.
> 
> I'm not using annotations at all.  Everything is done in the 
> mappings  
> xml.

All entities must have declared identity, but they can use compound
identity.

> BTW another thing that JPA needs is an equivalent of the OpenJPA  
> LifecycleListener.  The interceptor stuff doesn't cut it since beans  
> can override the interception and it is just a PIA to get your  
> interceptor added to ever bean.

You might be interested in the
org.apache.openjpa.event.TransactionListener stuff. Also, note that
OpenJPA allows re-entrancy and full mutability in callbacks and
listeners.

-Patrick
_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

Mime
View raw message