• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

annotations and reflection in Hibernate

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everybody,

I was looking around for applications which made use of java annotations when one of the members of this forum told me about Hibernate.It is a good example of how mapping which earlier used xml,now uses annotations.I want to know whether it uses reflection and if so, how? I also want to know in what other places in Hibernate are annotations used ?

Thank you.
 
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes Hibernate uses reflection

http://www.hibernate.org/194.html
http://www.hibernate.org/hib_docs/v3/reference/en/html/session-configuration.html

Etc... google it for more.

Castor

http://www.castor.org/xml-mapping.html

also uses relfection

XStream also uses it

http://xstream.codehaus.org/javadoc/com/thoughtworks/xstream/converters/reflection/package-tree.html
 
reply
    Bookmark Topic Watch Topic
  • New Topic