• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about SCBCD

 
BO QU
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is that sentence a field without a transient modifier must be annotated as
@Persistent to be stored in the database ture?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"BO QU"

Please check your private message for a message from JavaRanch.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As per the spec:

All non-transient instance variables that are not annotated with the Transient annotation are persistent.


which means that unless you have a @Transient annotation on top of a field, that field is by default considered persistent.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this question about SCBCD or ORM? If it is about SCBCD, then we/I can close this thread and move it to the SCBCD forum.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic