This content has been marked as final.
Show 3 replies
-
1. Re: Programatically obtain the name of the table used in @TA
patrick_ibg Feb 2, 2006 1:01 PM (in response to truto)You can most definitely get the annotations via the Class object (then fall back to the decapitalized className if the annotation parameter is missing).
Or you can dig through the EJB3 source code to find the method used by the mapping generator. -
2. Re: Programatically obtain the name of the table used in @TA
truto Feb 3, 2006 12:09 PM (in response to truto)Thanks! I've use a.getClass().getSimpleName() and then derived the table name from that, since all classes have the same nomenclature regarding the table. But I will check the annotation retrieval method later :-)
-
3. Re: Programatically obtain the name of the table used in @TA
epbernard Feb 9, 2006 4:34 PM (in response to truto)alternatively, you can access class metadata from the underlying hibernate session