Wednesday, 24 December 2014

Disable mapping for a column


By default all the instance fields of your class persist in database. There are situation, where you don’t want to persist some fields. You can do this in two ways.
1.   Make the field as transient
2.   Use the @Transient annotation

Note:
Static fields are not persisted into database.



Prevoius                                                 Next                                                 Home

No comments:

Post a Comment