Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is annotations case-sensitive?

 
Tang Yue
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is @Entity equivalent to @ENTITY ?

Is @PersistenceContext(type=EXTENDED) equivalent to @PersistenceContext(TyPe=exTenDed) ?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tang Yue:
]Is @Entity equivalent to @ENTITY ?

No

Originally posted by Tang Yue:
Is @PersistenceContext(type=EXTENDED) equivalent to @PersistenceContext(TyPe=exTenDed) ?


No

In general Annotations are case-sensitive since they are

To be more clear, remember that @Entity is actually javax.persistence.Entity. So javax.persistence.Entity != javax.persistence.ENTITY
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These are all Java interfaces, java classes or java class members, so everything is case-sensitive.
 
Chaminda Amarasinghe
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Annotations are interfaces, so case sensitive.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic