01: package com.bm.cfg;
02:
03: import org.hibernate.dialect.Dialect;
04: import org.hibernate.dialect.SQLServerDialect;
05:
06: /**
07: * Containts different db dialects.
08: * @author Daniel Wiese
09: *
10: */
11: public enum DBDialect {
12:
13: MS_SQLSERVER(new SQLServerDialect());
14:
15: private final Dialect dialect;
16:
17: private DBDialect(Dialect dialect) {
18: this .dialect = dialect;
19: }
20:
21: /**
22: * Getter to return the dialect.
23: *
24: * @return the dialect
25: */
26: public Dialect getDialect() {
27: return dialect;
28: }
29:
30: }
|