Don't know if that is possible, but I would bet money that you don't need to do things that way. It's most likely that all of those tables with different names correspond to different instances of the same type of object right? Those can probably all be stored in
one table. You would have to add one column to the table which maps the row to the instance it belongs to.
For example:
public class Parent {
public Set<Child> children;
}
public class Child {
public Parent parent;
public String name;
}
It sounds like you are making a separate table for every parent, and the each of them holds a list of children. You can combine them into one table for the parent
class, not each instance and one table for the child
class, not each instance. See the chapter on association mapping in the jboss hibernate manual:
http://docs.jboss.org/hibernate/core/3. ... tions.html