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.
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 :-)
alternatively, you can access class metadata from the underlying hibernate session