DDL « Map « JPA Q&A





1. Mapping with "Mixin" generates duplicate FK DDL.    forum.hibernate.org

stevecoh2 wrote: Ooh, could help me? Suppose I imported my FeatureListMember class under a different name (to fool Hibernate). Then I could persist into two separate tables (not a real problem) without having to maintain two classes that were duplicates of each other. Naah, that would be a hack and probably a bad one. That's not what import is for. ...

2. Generate DDL for all but one mapping?    forum.hibernate.org

Hibernate version: 3.05 Given a hibernate-config.xml with several 1-per-class mapping files named as elements, suppose I want to use schema generation, for all but one of the named mapping files (let's say that this mapping is to a legacy table and all the rest are new). Is there a convenient way to specify in the mapping files that DDL for ...