• 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
Sheriff
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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!