A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Object Relational Mapping
Hibernate annotation: exclude a field
Joined: Dec 23, 2003
Mar 11, 2010 17:45:14
In hibernate annotation, a class is declared as org.hibernate.annotations.Entity, how can I exclude a field so that it will NOT be mapped in database ? In traditional way, that is easy, we don't need write that field in hbm xml file.
Joined: Jul 30, 2008
Mar 11, 2010 21:50:22
You can use @Transient for that field, So it will not persist in to database.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Hibernate annotation: exclude a field
Query fields for Annotations
how to exclude a class member from hibernate mapping?
I am getting null value for particular column, while loading the object.
Persistence Unit: Unable to build EntityManagerFactory
how to use hibernate annotations with abstract methods
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014