Re: [hibernate-dev] Constraint naming in HBM2DDL schema export

2008-11-02 Thread Jürgen Avian
hricht > Datum: Fri, 31 Oct 2008 16:41:34 +0100 > Von: "Max Rydahl Andersen" <[EMAIL PROTECTED]> > An: "Jürgen Avian" <[EMAIL PROTECTED]>, hibernate-dev@lists.jboss.org > Betreff: Re: [hibernate-dev] Constraint naming in HBM2DDL schema ex

Re: [hibernate-dev] Constraint naming in HBM2DDL schema export

2008-10-31 Thread Max Rydahl Andersen
These should be on the existing NamingStrategy, not Dialect. They also needs to obey length limits on constraints - many dbs does not allow so long ones. It is not currently being implemented so feel free to contribute a patch (most likely for 3.4 since it will break/change API) /max H

[hibernate-dev] Constraint naming in HBM2DDL schema export

2008-10-31 Thread Jürgen Avian
Hi, some time ago I added the following feature to the Hibernate Core: Automated naming of the constraint types in the hbm2ddl schema export (naming scheme in brackets) - Primary Key Constraints (PK_) - Unique Constraints (UK__) - Check Constraints (__) - Foreign Key Constraints (FK__)