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.
No comments:
Post a Comment