Hi You all,
I would know if there's a way to define a custom Annotation i.e. "@UserDataEntity" (with RetentionPolicy.RUNTIME) inside of an Entity class, like code below:
@UserDataEntity @Entity @Table(name = "XXXXX", catalog = "YYYYY") .....
So, if there's an answer to my question, how to access this class attribute at runtime using reflection?
Scanning Entity metadata, through org.hibernate.Configuration (sessionFactoryBean.getConfiguration()) , I only get
org.hibernate.mapping.PersistentClass.
I'm using Hibernate 3.2.4.sp1 version
Thanks in advance.
|