What is the need for the table name? How are you using the table name in code? There are @Entity and @Column annotations, but I don't believe they dynamically give you the name of the underlying table.
There are situations where it would be very useful to get e.g. the table and column names of an JPA entity.
I must implement a method to serialize a number of different JPA entities into SQL INSERT strings. Sure, you can hard-code the table and colum names, but it would be very nice if they could be retrived from the entity (instance or class).
Is that possible?
Won't you please? Please won't you be my neighbor? - Fred Rogers. Tiny ad: