Revision 0f9d4e5a
Added by Andreas Müller about 11 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/types/SqlServer2005DatabaseType.java | ||
---|---|---|
12 | 12 |
import java.sql.ResultSet; |
13 | 13 |
import java.sql.SQLException; |
14 | 14 |
|
15 |
import org.hibernate.dialect.Dialect; |
|
16 |
import org.hibernate.dialect.SQLServer2005Dialect; |
|
17 |
|
|
15 | 18 |
import eu.etaxonomy.cdm.database.CdmDataSource; |
16 | 19 |
import eu.etaxonomy.cdm.database.ICdmDataSource; |
17 | 20 |
|
... | ... | |
37 | 40 |
protected int defaultPort = 1433; |
38 | 41 |
|
39 | 42 |
//hibernate dialect |
40 |
protected String hibernateDialect = "SQLServer2005Dialect";
|
|
43 |
protected Dialect hibernateDialect = new SQLServer2005Dialect();
|
|
41 | 44 |
|
42 | 45 |
public String getConnectionString(ICdmDataSource ds, int port){ |
43 | 46 |
return getConnectionString(ds, port, null); |
Also available in: Unified diff
Allow access to hibernate dialect via DatabaseTypeEnum, use this for foreign key handling in TableCreator and ColumnAdder/Changer