You may be looking for '@Transient' [1] which indicates that a field should not 
be persisted by the EntityManager.  You may also benefit from an introductory 
text to JPA such as this one [2].

Hope that helps.

[1] http://javadoc.glassfish.org/javaee6/apidoc/javax/persistence/Transient.html
[2] http://www.amazon.com/Pro-JPA-Mastering-Persistence-Technology/dp/1430219564


On Apr 1, 2010, at 10:56 AM, sapatel [via OpenJPA] wrote:

> Hi all, 
> 
> i am new to JPA. What I want to do is I want all my JPA entities to extend 
> some BaseEntity class where can I define some properites (which are not table 
> columns) to use/share. 
> 
> Is there anyway to do that? 
> 
> -Sanjay 
> 
> View message @ 
> http://n2.nabble.com/can-JPA-Entity-extend-non-JPA-Entity-tp4837568p4837568.html
>  
> To start a new topic under OpenJPA Users, email 
> [email protected] 
> To unsubscribe from OpenJPA Users, click here.
> 


-- 
View this message in context: 
http://n2.nabble.com/can-JPA-Entity-extend-non-JPA-Entity-tp4837568p4837713.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to