Revision 113:69201d5a44b7
src/main/java/my/com/upass/generic/hibernate/HibernateUtils.java | ||
---|---|---|
44 | 44 |
* It is hard coded. Just make sure out the hibernate configuration file at the mentioned path. |
45 | 45 |
* </pre> |
46 | 46 |
*/ |
47 |
private static String CONFIG_FILE_LOCATION = "/com/ib/hibernate/configuration/hibernate.cfg.xml"; |
|
47 |
// private static String CONFIG_FILE_LOCATION = "/com/ib/hibernate/configuration/hibernate.cfg.xml"; |
|
48 |
private static String CONFIG_FILE_LOCATION = "/hibernate.cfg.xml"; |
|
48 | 49 |
private static Configuration cfg = null; |
49 | 50 |
private static SessionFactory sessionFactory = null; |
50 | 51 |
private static ThreadLocal session = null; |
src/main/resources/com/ib/hibernate/configuration/hibernate.cfg.xml | ||
---|---|---|
1 |
<?xml version='1.0' encoding='utf-8'?> |
|
2 |
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" |
|
3 |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|
4 |
|
|
5 |
<hibernate-configuration> |
|
6 |
<session-factory> |
|
7 |
<!-- Database connection settings --> |
|
8 |
|
|
9 |
<property name="connection.url">jdbc:oracle:thin:@localhost:1521:XE</property> |
|
10 |
<property name="hibernate.connection.username">M2U_UPASS_CI</property> |
|
11 |
<property name="hibernate.connection.password">ci123</property> |
|
12 |
|
|
13 |
<!-- Database connection settings --> |
|
14 |
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> |
|
15 |
<!-- SQL dialect --> |
|
16 |
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property> |
|
17 |
|
|
18 |
<!-- Enable Hibernate's automatic session context management --> |
|
19 |
<property name="current_session_context_class">thread</property> |
|
20 |
|
|
21 |
<!-- Disable the second-level cache --> |
|
22 |
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> |
|
23 |
|
|
24 |
<!-- Echo all executed SQL to stdout --> |
|
25 |
<property name="show_sql">true</property> |
|
26 |
<property name="format_sql">true</property> |
|
27 |
|
|
28 |
<property name="hibernate.hbm2ddl.auto">none</property> |
|
29 |
|
|
30 |
<!-- Mapping files --> |
|
31 |
<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" /> |
|
32 |
<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" /> |
|
33 |
<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" /> |
|
34 |
<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" /> |
|
35 |
<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" /> |
|
36 |
<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" /> |
|
37 |
<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" /> |
|
38 |
<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" /> |
|
39 |
<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" /> |
|
40 |
<!-- |
|
41 |
<mapping resource="my/com/upass/hibernate/TbAmGemalto.hbm.xml" /> |
|
42 |
<mapping resource="my/com/upass/hibernate/TbAmVasco.hbm.xml" /> |
|
43 |
--> |
|
44 |
|
|
45 |
<mapping resource="my/com/upass/hibernate/ClientApp.hbm.xml" /> |
|
46 |
<mapping resource="my/com/upass/hibernate/UserAppAccess.hbm.xml" /> |
|
47 |
<mapping resource="my/com/upass/maybank/entities/hibernate/IbccUser.hbm.xml" /> |
|
48 |
<mapping resource="my/com/upass/maybank/entities/hibernate/Im2uUser.hbm.xml" /> |
|
49 |
<mapping resource="my/com/upass/maybank/entities/hibernate/M2uUser.hbm.xml" /> |
|
50 |
<mapping resource="my/com/upass/maybank/entities/hibernate/StockUser.hbm.xml" /> |
|
51 |
<mapping resource="my/com/upass/maybank/entities/hibernate/TicketingUser.hbm.xml" /> |
|
52 |
</session-factory> |
|
53 |
</hibernate-configuration> |
src/main/resources/com/ib/hibernate/configuration/hibernate.dev-penril.cfg.xml | ||
---|---|---|
1 |
<?xml version='1.0' encoding='utf-8'?> |
|
2 |
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" |
|
3 |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|
4 |
|
|
5 |
<hibernate-configuration> |
|
6 |
<session-factory> |
|
7 |
<!-- Database connection settings --> |
|
8 |
<property name="connection.url">jdbc:oracle:thin:@localhost:1521:XE</property> |
|
9 |
<property name="hibernate.connection.username">M2U_UPASS_CI</property> |
|
10 |
<property name="hibernate.connection.password">ci123</property> |
|
11 |
|
|
12 |
<!-- Database connection settings --> |
|
13 |
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> |
|
14 |
<!-- SQL dialect --> |
|
15 |
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property> |
|
16 |
|
|
17 |
<!-- Use the C3P0 connection pool provider --> |
|
18 |
<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property> |
|
19 |
<property name="hibernate.c3p0.acquire_increment">5</property> |
|
20 |
<property name="hibernate.c3p0.min_size">20</property> |
|
21 |
<property name="hibernate.c3p0.max_size">50</property> |
|
22 |
<property name="hibernate.c3p0.timeout">120</property> |
|
23 |
<property name="hibernate.c3p0.max_statements">0</property> |
|
24 |
<!-- Enable Hibernate's automatic session context management --> |
|
25 |
<property name="current_session_context_class">thread</property> |
|
26 |
|
|
27 |
<!-- Disable the second-level cache --> |
|
28 |
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> |
|
29 |
|
|
30 |
<!-- Echo all executed SQL to stdout --> |
|
31 |
<property name="show_sql">true</property> |
|
32 |
<property name="format_sql">true</property> |
|
33 |
|
|
34 |
<property name="hibernate.hbm2ddl.auto">none</property> |
|
35 |
|
|
36 |
<!-- Mapping files --> |
|
37 |
<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" /> |
|
38 |
<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" /> |
|
39 |
<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" /> |
|
40 |
<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" /> |
|
41 |
<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" /> |
|
42 |
<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" /> |
|
43 |
<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" /> |
|
44 |
<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" /> |
|
45 |
<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" /> |
|
46 |
<!-- |
|
47 |
<mapping resource="my/com/upass/hibernate/TbAmGemalto.hbm.xml" /> |
|
48 |
<mapping resource="my/com/upass/hibernate/TbAmVasco.hbm.xml" /> |
|
49 |
--> |
|
50 |
|
|
51 |
<mapping resource="my/com/upass/hibernate/ClientApp.hbm.xml" /> |
|
52 |
<mapping resource="my/com/upass/hibernate/UserAppAccess.hbm.xml" /> |
|
53 |
<mapping resource="my/com/upass/maybank/entities/hibernate/IbccUser.hbm.xml" /> |
|
54 |
<mapping resource="my/com/upass/maybank/entities/hibernate/Im2uUser.hbm.xml" /> |
|
55 |
<mapping resource="my/com/upass/maybank/entities/hibernate/M2uUser.hbm.xml" /> |
|
56 |
<mapping resource="my/com/upass/maybank/entities/hibernate/StockUser.hbm.xml" /> |
|
57 |
<mapping resource="my/com/upass/maybank/entities/hibernate/TicketingUser.hbm.xml" /> |
|
58 |
</session-factory> |
|
59 |
</hibernate-configuration> |
src/main/resources/com/ib/hibernate/configuration/hibernate.maybank-dev-jndi.cfg.xml | ||
---|---|---|
1 |
<?xml version='1.0' encoding='utf-8'?> |
|
2 |
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" |
|
3 |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|
4 |
|
|
5 |
<hibernate-configuration> |
|
6 |
<session-factory> |
|
7 |
<!-- Database connection settings --> |
|
8 |
|
|
9 |
<!-- |
|
10 |
<property name="connection.url">jdbc:oracle:thin:@172.31.11.50:1521:ibd</property> |
|
11 |
<property name="hibernate.connection.username">upassdev</property> |
|
12 |
<property name="hibernate.connection.password">upassdev</property> |
|
13 |
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> |
|
14 |
--> |
|
15 |
|
|
16 |
<property name="hibernate.connection.datasource">jdbc/UPassDataSource</property> |
|
17 |
<property name="hibernate.jndi.url">t3://172.31.20.101:7010</property> |
|
18 |
<property name="hibernate.jndi.class">weblogic.jndi.WLInitialContextFactory</property> |
|
19 |
|
|
20 |
<!-- Database connection settings --> |
|
21 |
<!-- SQL dialect --> |
|
22 |
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property> |
|
23 |
|
|
24 |
<!-- Enable Hibernate's automatic session context management --> |
|
25 |
<property name="current_session_context_class">thread</property> |
|
26 |
|
|
27 |
<!-- Disable the second-level cache --> |
|
28 |
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> |
|
29 |
|
|
30 |
<!-- Echo all executed SQL to stdout --> |
|
31 |
<property name="show_sql">false</property> |
|
32 |
<property name="format_sql">true</property> |
|
33 |
|
|
34 |
<property name="hibernate.hbm2ddl.auto">none</property> |
|
35 |
|
|
36 |
<!-- Mapping files --> |
|
37 |
<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" /> |
|
38 |
<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" /> |
|
39 |
<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" /> |
|
40 |
<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" /> |
|
41 |
<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" /> |
|
42 |
<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" /> |
|
43 |
<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" /> |
|
44 |
<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" /> |
|
45 |
<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" /> |
|
46 |
<!-- |
|
47 |
<mapping resource="my/com/upass/hibernate/TbAmGemalto.hbm.xml" /> |
|
48 |
<mapping resource="my/com/upass/hibernate/TbAmVasco.hbm.xml" /> |
|
49 |
--> |
|
50 |
|
|
51 |
<mapping resource="my/com/upass/hibernate/ClientApp.hbm.xml" /> |
|
52 |
<mapping resource="my/com/upass/hibernate/UserAppAccess.hbm.xml" /> |
|
53 |
<mapping resource="my/com/upass/maybank/entities/hibernate/IbccUser.hbm.xml" /> |
|
54 |
<mapping resource="my/com/upass/maybank/entities/hibernate/Im2uUser.hbm.xml" /> |
|
55 |
<mapping resource="my/com/upass/maybank/entities/hibernate/M2uUser.hbm.xml" /> |
|
56 |
<mapping resource="my/com/upass/maybank/entities/hibernate/StockUser.hbm.xml" /> |
|
57 |
<mapping resource="my/com/upass/maybank/entities/hibernate/TicketingUser.hbm.xml" /> |
|
58 |
</session-factory> |
|
59 |
</hibernate-configuration> |
src/main/resources/com/ib/hibernate/configuration/hibernate.maybank-dev.cfg.xml | ||
---|---|---|
1 |
<?xml version='1.0' encoding='utf-8'?> |
|
2 |
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" |
|
3 |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|
4 |
|
|
5 |
<hibernate-configuration> |
|
6 |
<session-factory> |
|
7 |
<!-- Database connection settings --> |
|
8 |
|
|
9 |
<property name="connection.url">jdbc:oracle:thin:@172.31.11.50:1521:ibd</property> |
|
10 |
<property name="hibernate.connection.username">upassdev</property> |
|
11 |
<property name="hibernate.connection.password">upassdev</property> |
|
12 |
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> |
|
13 |
|
|
14 |
<!-- Database connection settings --> |
|
15 |
<!-- SQL dialect --> |
|
16 |
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property> |
|
17 |
|
|
18 |
<!-- Use the C3P0 connection pool provider --> |
|
19 |
<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property> |
|
20 |
<property name="hibernate.c3p0.acquire_increment">5</property> |
|
21 |
<property name="hibernate.c3p0.min_size">20</property> |
|
22 |
<property name="hibernate.c3p0.max_size">50</property> |
|
23 |
<property name="hibernate.c3p0.timeout">120</property> |
|
24 |
<property name="hibernate.c3p0.max_statements">0</property> |
|
25 |
|
|
26 |
<!-- Enable Hibernate's automatic session context management --> |
|
27 |
<property name="current_session_context_class">thread</property> |
|
28 |
|
|
29 |
<!-- Disable the second-level cache --> |
|
30 |
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> |
|
31 |
|
|
32 |
<!-- Echo all executed SQL to stdout --> |
|
33 |
<property name="show_sql">false</property> |
|
34 |
<property name="format_sql">true</property> |
|
35 |
|
|
36 |
<property name="hibernate.hbm2ddl.auto">none</property> |
|
37 |
|
|
38 |
<!-- Mapping files --> |
|
39 |
<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" /> |
|
40 |
<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" /> |
|
41 |
<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" /> |
|
42 |
<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" /> |
|
43 |
<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" /> |
|
44 |
<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" /> |
|
45 |
<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" /> |
|
46 |
<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" /> |
|
47 |
<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" /> |
|
48 |
<!-- |
|
49 |
<mapping resource="my/com/upass/hibernate/TbAmGemalto.hbm.xml" /> |
|
50 |
<mapping resource="my/com/upass/hibernate/TbAmVasco.hbm.xml" /> |
|
51 |
--> |
|
52 |
|
|
53 |
<mapping resource="my/com/upass/hibernate/ClientApp.hbm.xml" /> |
|
54 |
<mapping resource="my/com/upass/hibernate/UserAppAccess.hbm.xml" /> |
|
55 |
<mapping resource="my/com/upass/maybank/entities/hibernate/IbccUser.hbm.xml" /> |
|
56 |
<mapping resource="my/com/upass/maybank/entities/hibernate/Im2uUser.hbm.xml" /> |
|
57 |
<mapping resource="my/com/upass/maybank/entities/hibernate/M2uUser.hbm.xml" /> |
|
58 |
<mapping resource="my/com/upass/maybank/entities/hibernate/StockUser.hbm.xml" /> |
|
59 |
<mapping resource="my/com/upass/maybank/entities/hibernate/TicketingUser.hbm.xml" /> |
|
60 |
</session-factory> |
|
61 |
</hibernate-configuration> |
src/main/resources/com/ib/hibernate/configuration/hibernate.maybank-prod-jndi.cfg.xml | ||
---|---|---|
1 |
<?xml version='1.0' encoding='utf-8'?> |
|
2 |
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" |
|
3 |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|
4 |
|
|
5 |
<hibernate-configuration> |
|
6 |
<session-factory> |
|
7 |
<!-- Database connection settings --> |
|
8 |
|
|
9 |
<property name="hibernate.connection.datasource">jdbc/UPassDataSource</property> |
|
10 |
<property name="hibernate.jndi.url">t3://172.31.20.101:7010</property> |
|
11 |
<property name="hibernate.jndi.class">weblogic.jndi.WLInitialContextFactory</property> |
|
12 |
|
|
13 |
<!-- Database connection settings --> |
|
14 |
<!-- SQL dialect --> |
|
15 |
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property> |
|
16 |
|
|
17 |
<!-- Enable Hibernate's automatic session context management --> |
|
18 |
<property name="current_session_context_class">thread</property> |
|
19 |
|
|
20 |
<!-- Disable the second-level cache --> |
|
21 |
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> |
|
22 |
|
|
23 |
<!-- Echo all executed SQL to stdout --> |
|
24 |
<property name="show_sql">false</property> |
|
25 |
<property name="format_sql">true</property> |
|
26 |
|
|
27 |
<property name="hibernate.hbm2ddl.auto">none</property> |
|
28 |
|
|
29 |
<!-- Mapping files --> |
|
30 |
<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" /> |
|
31 |
<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" /> |
|
32 |
<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" /> |
|
33 |
<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" /> |
|
34 |
<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" /> |
|
35 |
<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" /> |
|
36 |
<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" /> |
|
37 |
<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" /> |
|
38 |
<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" /> |
|
39 |
<mapping resource="my/com/upass/hibernate/ClientApp.hbm.xml" /> |
|
40 |
<mapping resource="my/com/upass/hibernate/UserAppAccess.hbm.xml" /> |
|
41 |
<mapping resource="my/com/upass/maybank/entities/hibernate/IbccUser.hbm.xml" /> |
|
42 |
<mapping resource="my/com/upass/maybank/entities/hibernate/Im2uUser.hbm.xml" /> |
|
43 |
<mapping resource="my/com/upass/maybank/entities/hibernate/M2uUser.hbm.xml" /> |
|
44 |
<mapping resource="my/com/upass/maybank/entities/hibernate/StockUser.hbm.xml" /> |
|
45 |
<mapping resource="my/com/upass/maybank/entities/hibernate/TicketingUser.hbm.xml" /> |
|
46 |
</session-factory> |
|
47 |
</hibernate-configuration> |
src/main/resources/com/ib/hibernate/configuration/hibernate.maybank-prod.cfg.xml | ||
---|---|---|
1 |
<?xml version='1.0' encoding='utf-8'?> |
|
2 |
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" |
|
3 |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|
4 |
|
|
5 |
<hibernate-configuration> |
|
6 |
<session-factory> |
|
7 |
<!-- Database connection settings --> |
|
8 |
|
|
9 |
<property name="connection.url">jdbc:oracle:thin:@172.31.11.50:1521:ibd</property> |
|
10 |
<property name="hibernate.connection.username">upassdev</property> |
|
11 |
<property name="hibernate.connection.password">upassdev</property> |
|
12 |
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> |
|
13 |
|
|
14 |
<!-- Database connection settings --> |
|
15 |
<!-- SQL dialect --> |
|
16 |
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property> |
|
17 |
|
|
18 |
<!-- Use the C3P0 connection pool provider --> |
|
19 |
<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property> |
|
20 |
<property name="hibernate.c3p0.acquire_increment">5</property> |
|
21 |
<property name="hibernate.c3p0.min_size">20</property> |
|
22 |
<property name="hibernate.c3p0.max_size">50</property> |
|
23 |
<property name="hibernate.c3p0.timeout">120</property> |
|
24 |
<property name="hibernate.c3p0.max_statements">0</property> |
|
25 |
|
|
26 |
<!-- Enable Hibernate's automatic session context management --> |
|
27 |
<property name="current_session_context_class">thread</property> |
|
28 |
|
|
29 |
<!-- Disable the second-level cache --> |
|
30 |
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> |
|
31 |
|
|
32 |
<!-- Echo all executed SQL to stdout --> |
|
33 |
<property name="show_sql">false</property> |
|
34 |
<property name="format_sql">true</property> |
|
35 |
|
|
36 |
<property name="hibernate.hbm2ddl.auto">none</property> |
|
37 |
|
|
38 |
<!-- Mapping files --> |
|
39 |
<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" /> |
|
40 |
<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" /> |
|
41 |
<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" /> |
|
42 |
<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" /> |
|
43 |
<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" /> |
|
44 |
<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" /> |
|
45 |
<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" /> |
|
46 |
<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" /> |
|
47 |
<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" /> |
|
48 |
<mapping resource="my/com/upass/hibernate/ClientApp.hbm.xml" /> |
|
49 |
<mapping resource="my/com/upass/hibernate/UserAppAccess.hbm.xml" /> |
|
50 |
<mapping resource="my/com/upass/maybank/entities/hibernate/IbccUser.hbm.xml" /> |
|
51 |
<mapping resource="my/com/upass/maybank/entities/hibernate/Im2uUser.hbm.xml" /> |
|
52 |
<mapping resource="my/com/upass/maybank/entities/hibernate/M2uUser.hbm.xml" /> |
|
53 |
<mapping resource="my/com/upass/maybank/entities/hibernate/StockUser.hbm.xml" /> |
|
54 |
<mapping resource="my/com/upass/maybank/entities/hibernate/TicketingUser.hbm.xml" /> |
|
55 |
</session-factory> |
|
56 |
</hibernate-configuration> |
src/main/resources/com/ib/hibernate/configuration/hibernate.staging-ci.cfg.xml | ||
---|---|---|
1 |
<?xml version='1.0' encoding='utf-8'?> |
|
2 |
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" |
|
3 |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|
4 |
|
|
5 |
<hibernate-configuration> |
|
6 |
<session-factory> |
|
7 |
<!-- Database connection settings --> |
|
8 |
<!-- <property name="connection.url">jdbc:oracle:thin:@localhost:1521:XE</property> --> |
|
9 |
<property name="connection.url">jdbc:oracle:thin:@192.168.1.126:1521:IBSDEMO</property> |
|
10 |
<property name="hibernate.connection.username">M2U_UPASS_CI</property> |
|
11 |
<property name="hibernate.connection.password">ci123</property> |
|
12 |
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> |
|
13 |
<!-- SQL dialect --> |
|
14 |
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property> |
|
15 |
|
|
16 |
<!-- Use the C3P0 connection pool provider --> |
|
17 |
<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property> |
|
18 |
<property name="hibernate.c3p0.acquire_increment">5</property> |
|
19 |
<property name="hibernate.c3p0.min_size">20</property> |
|
20 |
<property name="hibernate.c3p0.max_size">50</property> |
|
21 |
<property name="hibernate.c3p0.timeout">120</property> |
|
22 |
<property name="hibernate.c3p0.max_statements">0</property> |
|
23 |
<!-- Enable Hibernate's automatic session context management --> |
|
24 |
<property name="current_session_context_class">thread</property> |
|
25 |
|
|
26 |
<!-- Disable the second-level cache --> |
|
27 |
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> |
|
28 |
|
|
29 |
<!-- Echo all executed SQL to stdout --> |
|
30 |
<property name="show_sql">false</property> |
|
31 |
<property name="format_sql">true</property> |
|
32 |
|
|
33 |
<property name="hibernate.hbm2ddl.auto">none</property> |
|
34 |
|
|
35 |
<!-- Mapping files --> |
|
36 |
<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" /> |
|
37 |
<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" /> |
|
38 |
<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" /> |
|
39 |
<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" /> |
|
40 |
<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" /> |
|
41 |
<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" /> |
|
42 |
<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" /> |
|
43 |
<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" /> |
|
44 |
<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" /> |
|
45 |
<!-- |
|
46 |
<mapping resource="my/com/upass/hibernate/TbAmGemalto.hbm.xml" /> |
|
47 |
<mapping resource="my/com/upass/hibernate/TbAmVasco.hbm.xml" /> |
|
48 |
--> |
|
49 |
|
|
50 |
<mapping resource="my/com/upass/hibernate/ClientApp.hbm.xml" /> |
|
51 |
<mapping resource="my/com/upass/hibernate/UserAppAccess.hbm.xml" /> |
|
52 |
<mapping resource="my/com/upass/maybank/entities/hibernate/IbccUser.hbm.xml" /> |
|
53 |
<mapping resource="my/com/upass/maybank/entities/hibernate/Im2uUser.hbm.xml" /> |
|
54 |
<mapping resource="my/com/upass/maybank/entities/hibernate/M2uUser.hbm.xml" /> |
|
55 |
<mapping resource="my/com/upass/maybank/entities/hibernate/StockUser.hbm.xml" /> |
|
56 |
<mapping resource="my/com/upass/maybank/entities/hibernate/TicketingUser.hbm.xml" /> |
|
57 |
</session-factory> |
|
58 |
</hibernate-configuration> |
src/main/resources/hibernate.cfg.xml | ||
---|---|---|
1 |
<?xml version='1.0' encoding='utf-8'?> |
|
2 |
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" |
|
3 |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|
4 |
|
|
5 |
<hibernate-configuration> |
|
6 |
<session-factory> |
|
7 |
<!-- Database connection settings --> |
|
8 |
|
|
9 |
<property name="connection.url">jdbc:oracle:thin:@localhost:1521:XE</property> |
|
10 |
<property name="hibernate.connection.username">M2U_UPASS_CI</property> |
|
11 |
<property name="hibernate.connection.password">ci123</property> |
|
12 |
|
|
13 |
<!-- Database connection settings --> |
|
14 |
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> |
|
15 |
<!-- SQL dialect --> |
|
16 |
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property> |
|
17 |
|
|
18 |
<!-- Enable Hibernate's automatic session context management --> |
|
19 |
<property name="current_session_context_class">thread</property> |
|
20 |
|
|
21 |
<!-- Disable the second-level cache --> |
|
22 |
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> |
|
23 |
|
|
24 |
<!-- Echo all executed SQL to stdout --> |
|
25 |
<property name="show_sql">true</property> |
|
26 |
<property name="format_sql">true</property> |
|
27 |
|
|
28 |
<property name="hibernate.hbm2ddl.auto">none</property> |
|
29 |
|
|
30 |
<!-- Mapping files --> |
|
31 |
<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" /> |
|
32 |
<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" /> |
|
33 |
<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" /> |
|
34 |
<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" /> |
|
35 |
<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" /> |
|
36 |
<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" /> |
|
37 |
<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" /> |
|
38 |
<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" /> |
|
39 |
<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" /> |
|
40 |
<!-- |
|
41 |
<mapping resource="my/com/upass/hibernate/TbAmGemalto.hbm.xml" /> |
|
42 |
<mapping resource="my/com/upass/hibernate/TbAmVasco.hbm.xml" /> |
|
43 |
--> |
|
44 |
|
|
45 |
<mapping resource="my/com/upass/hibernate/ClientApp.hbm.xml" /> |
|
46 |
<mapping resource="my/com/upass/hibernate/UserAppAccess.hbm.xml" /> |
|
47 |
<mapping resource="my/com/upass/maybank/entities/hibernate/IbccUser.hbm.xml" /> |
|
48 |
<mapping resource="my/com/upass/maybank/entities/hibernate/Im2uUser.hbm.xml" /> |
|
49 |
<mapping resource="my/com/upass/maybank/entities/hibernate/M2uUser.hbm.xml" /> |
|
50 |
<mapping resource="my/com/upass/maybank/entities/hibernate/StockUser.hbm.xml" /> |
|
51 |
<mapping resource="my/com/upass/maybank/entities/hibernate/TicketingUser.hbm.xml" /> |
|
52 |
</session-factory> |
|
53 |
</hibernate-configuration> |
src/main/resources/hibernate.dev-penril.cfg.xml | ||
---|---|---|
1 |
<?xml version='1.0' encoding='utf-8'?> |
|
2 |
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" |
|
3 |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|
4 |
|
|
5 |
<hibernate-configuration> |
|
6 |
<session-factory> |
|
7 |
<!-- Database connection settings --> |
|
8 |
<property name="connection.url">jdbc:oracle:thin:@localhost:1521:XE</property> |
|
9 |
<property name="hibernate.connection.username">M2U_UPASS_CI</property> |
|
10 |
<property name="hibernate.connection.password">ci123</property> |
|
11 |
|
|
12 |
<!-- Database connection settings --> |
|
13 |
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> |
|
14 |
<!-- SQL dialect --> |
|
15 |
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property> |
|
16 |
|
|
17 |
<!-- Use the C3P0 connection pool provider --> |
|
18 |
<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property> |
|
19 |
<property name="hibernate.c3p0.acquire_increment">5</property> |
|
20 |
<property name="hibernate.c3p0.min_size">20</property> |
|
21 |
<property name="hibernate.c3p0.max_size">50</property> |
|
22 |
<property name="hibernate.c3p0.timeout">120</property> |
|
23 |
<property name="hibernate.c3p0.max_statements">0</property> |
|
24 |
<!-- Enable Hibernate's automatic session context management --> |
|
25 |
<property name="current_session_context_class">thread</property> |
|
26 |
|
|
27 |
<!-- Disable the second-level cache --> |
|
28 |
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> |
|
29 |
|
|
30 |
<!-- Echo all executed SQL to stdout --> |
|
31 |
<property name="show_sql">true</property> |
|
32 |
<property name="format_sql">true</property> |
|
33 |
|
|
34 |
<property name="hibernate.hbm2ddl.auto">none</property> |
|
35 |
|
|
36 |
<!-- Mapping files --> |
|
37 |
<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" /> |
|
38 |
<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" /> |
|
39 |
<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" /> |
|
40 |
<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" /> |
|
41 |
<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" /> |
|
42 |
<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" /> |
|
43 |
<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" /> |
|
44 |
<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" /> |
|
45 |
<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" /> |
|
46 |
<!-- |
|
47 |
<mapping resource="my/com/upass/hibernate/TbAmGemalto.hbm.xml" /> |
|
48 |
<mapping resource="my/com/upass/hibernate/TbAmVasco.hbm.xml" /> |
|
49 |
--> |
|
50 |
|
|
51 |
<mapping resource="my/com/upass/hibernate/ClientApp.hbm.xml" /> |
|
52 |
<mapping resource="my/com/upass/hibernate/UserAppAccess.hbm.xml" /> |
|
53 |
<mapping resource="my/com/upass/maybank/entities/hibernate/IbccUser.hbm.xml" /> |
|
54 |
<mapping resource="my/com/upass/maybank/entities/hibernate/Im2uUser.hbm.xml" /> |
|
55 |
<mapping resource="my/com/upass/maybank/entities/hibernate/M2uUser.hbm.xml" /> |
|
56 |
<mapping resource="my/com/upass/maybank/entities/hibernate/StockUser.hbm.xml" /> |
|
57 |
<mapping resource="my/com/upass/maybank/entities/hibernate/TicketingUser.hbm.xml" /> |
|
58 |
</session-factory> |
|
59 |
</hibernate-configuration> |
src/main/resources/hibernate.maybank-dev-jndi.cfg.xml | ||
---|---|---|
1 |
<?xml version='1.0' encoding='utf-8'?> |
|
2 |
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" |
|
3 |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|
4 |
|
|
5 |
<hibernate-configuration> |
|
6 |
<session-factory> |
|
7 |
<!-- Database connection settings --> |
|
8 |
|
|
9 |
<!-- |
|
10 |
<property name="connection.url">jdbc:oracle:thin:@172.31.11.50:1521:ibd</property> |
|
11 |
<property name="hibernate.connection.username">upassdev</property> |
|
12 |
<property name="hibernate.connection.password">upassdev</property> |
|
13 |
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> |
|
14 |
--> |
|
15 |
|
|
16 |
<property name="hibernate.connection.datasource">jdbc/UPassDataSource</property> |
|
17 |
<property name="hibernate.jndi.url">t3://172.31.20.101:7010</property> |
|
18 |
<property name="hibernate.jndi.class">weblogic.jndi.WLInitialContextFactory</property> |
|
19 |
|
|
20 |
<!-- Database connection settings --> |
|
21 |
<!-- SQL dialect --> |
|
22 |
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property> |
|
23 |
|
|
24 |
<!-- Enable Hibernate's automatic session context management --> |
|
25 |
<property name="current_session_context_class">thread</property> |
|
26 |
|
|
27 |
<!-- Disable the second-level cache --> |
|
28 |
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> |
|
29 |
|
|
30 |
<!-- Echo all executed SQL to stdout --> |
|
31 |
<property name="show_sql">false</property> |
|
32 |
<property name="format_sql">true</property> |
|
33 |
|
|
34 |
<property name="hibernate.hbm2ddl.auto">none</property> |
|
35 |
|
|
36 |
<!-- Mapping files --> |
|
37 |
<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" /> |
|
38 |
<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" /> |
|
39 |
<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" /> |
|
40 |
<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" /> |
|
41 |
<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" /> |
|
42 |
<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" /> |
|
43 |
<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" /> |
|
44 |
<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" /> |
|
45 |
<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" /> |
|
46 |
<!-- |
|
47 |
<mapping resource="my/com/upass/hibernate/TbAmGemalto.hbm.xml" /> |
|
48 |
<mapping resource="my/com/upass/hibernate/TbAmVasco.hbm.xml" /> |
|
49 |
--> |
|
50 |
|
|
51 |
<mapping resource="my/com/upass/hibernate/ClientApp.hbm.xml" /> |
|
52 |
<mapping resource="my/com/upass/hibernate/UserAppAccess.hbm.xml" /> |
|
53 |
<mapping resource="my/com/upass/maybank/entities/hibernate/IbccUser.hbm.xml" /> |
|
54 |
<mapping resource="my/com/upass/maybank/entities/hibernate/Im2uUser.hbm.xml" /> |
|
55 |
<mapping resource="my/com/upass/maybank/entities/hibernate/M2uUser.hbm.xml" /> |
|
56 |
<mapping resource="my/com/upass/maybank/entities/hibernate/StockUser.hbm.xml" /> |
|
57 |
<mapping resource="my/com/upass/maybank/entities/hibernate/TicketingUser.hbm.xml" /> |
|
58 |
</session-factory> |
|
59 |
</hibernate-configuration> |
src/main/resources/hibernate.maybank-dev.cfg.xml | ||
---|---|---|
1 |
<?xml version='1.0' encoding='utf-8'?> |
|
2 |
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" |
|
3 |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|
4 |
|
|
5 |
<hibernate-configuration> |
|
6 |
<session-factory> |
|
7 |
<!-- Database connection settings --> |
|
8 |
|
|
9 |
<property name="connection.url">jdbc:oracle:thin:@172.31.11.50:1521:ibd</property> |
|
10 |
<property name="hibernate.connection.username">upassdev</property> |
|
11 |
<property name="hibernate.connection.password">upassdev</property> |
|
12 |
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> |
|
13 |
|
|
14 |
<!-- Database connection settings --> |
|
15 |
<!-- SQL dialect --> |
|
16 |
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property> |
|
17 |
|
|
18 |
<!-- Use the C3P0 connection pool provider --> |
|
19 |
<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property> |
|
20 |
<property name="hibernate.c3p0.acquire_increment">5</property> |
|
21 |
<property name="hibernate.c3p0.min_size">20</property> |
|
22 |
<property name="hibernate.c3p0.max_size">50</property> |
|
23 |
<property name="hibernate.c3p0.timeout">120</property> |
|
24 |
<property name="hibernate.c3p0.max_statements">0</property> |
|
25 |
|
|
26 |
<!-- Enable Hibernate's automatic session context management --> |
|
27 |
<property name="current_session_context_class">thread</property> |
|
28 |
|
|
29 |
<!-- Disable the second-level cache --> |
|
30 |
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> |
|
31 |
|
|
32 |
<!-- Echo all executed SQL to stdout --> |
|
33 |
<property name="show_sql">false</property> |
|
34 |
<property name="format_sql">true</property> |
|
35 |
|
|
36 |
<property name="hibernate.hbm2ddl.auto">none</property> |
|
37 |
|
|
38 |
<!-- Mapping files --> |
|
39 |
<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" /> |
|
40 |
<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" /> |
|
41 |
<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" /> |
|
42 |
<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" /> |
|
43 |
<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" /> |
|
44 |
<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" /> |
|
45 |
<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" /> |
|
46 |
<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" /> |
|
47 |
<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" /> |
|
48 |
<!-- |
|
49 |
<mapping resource="my/com/upass/hibernate/TbAmGemalto.hbm.xml" /> |
|
50 |
<mapping resource="my/com/upass/hibernate/TbAmVasco.hbm.xml" /> |
|
51 |
--> |
|
52 |
|
|
53 |
<mapping resource="my/com/upass/hibernate/ClientApp.hbm.xml" /> |
|
54 |
<mapping resource="my/com/upass/hibernate/UserAppAccess.hbm.xml" /> |
|
55 |
<mapping resource="my/com/upass/maybank/entities/hibernate/IbccUser.hbm.xml" /> |
|
56 |
<mapping resource="my/com/upass/maybank/entities/hibernate/Im2uUser.hbm.xml" /> |
|
57 |
<mapping resource="my/com/upass/maybank/entities/hibernate/M2uUser.hbm.xml" /> |
|
58 |
<mapping resource="my/com/upass/maybank/entities/hibernate/StockUser.hbm.xml" /> |
|
59 |
<mapping resource="my/com/upass/maybank/entities/hibernate/TicketingUser.hbm.xml" /> |
|
60 |
</session-factory> |
|
61 |
</hibernate-configuration> |
src/main/resources/hibernate.maybank-prod-jndi.cfg.xml | ||
---|---|---|
1 |
<?xml version='1.0' encoding='utf-8'?> |
|
2 |
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" |
|
3 |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|
4 |
|
|
5 |
<hibernate-configuration> |
|
6 |
<session-factory> |
|
7 |
<!-- Database connection settings --> |
|
8 |
|
|
9 |
<property name="hibernate.connection.datasource">jdbc/UPassDataSource</property> |
|
10 |
<property name="hibernate.jndi.url">t3://172.31.20.101:7010</property> |
|
11 |
<property name="hibernate.jndi.class">weblogic.jndi.WLInitialContextFactory</property> |
|
12 |
|
|
13 |
<!-- Database connection settings --> |
|
14 |
<!-- SQL dialect --> |
|
15 |
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property> |
|
16 |
|
|
17 |
<!-- Enable Hibernate's automatic session context management --> |
|
18 |
<property name="current_session_context_class">thread</property> |
|
19 |
|
|
20 |
<!-- Disable the second-level cache --> |
|
21 |
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> |
|
22 |
|
|
23 |
<!-- Echo all executed SQL to stdout --> |
|
24 |
<property name="show_sql">false</property> |
|
25 |
<property name="format_sql">true</property> |
|
26 |
|
|
27 |
<property name="hibernate.hbm2ddl.auto">none</property> |
|
28 |
|
|
29 |
<!-- Mapping files --> |
|
30 |
<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" /> |
|
31 |
<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" /> |
|
32 |
<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" /> |
|
33 |
<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" /> |
|
34 |
<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" /> |
|
35 |
<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" /> |
|
36 |
<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" /> |
|
37 |
<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" /> |
|
38 |
<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" /> |
|
39 |
<mapping resource="my/com/upass/hibernate/ClientApp.hbm.xml" /> |
|
40 |
<mapping resource="my/com/upass/hibernate/UserAppAccess.hbm.xml" /> |
|
41 |
<mapping resource="my/com/upass/maybank/entities/hibernate/IbccUser.hbm.xml" /> |
|
42 |
<mapping resource="my/com/upass/maybank/entities/hibernate/Im2uUser.hbm.xml" /> |
|
43 |
<mapping resource="my/com/upass/maybank/entities/hibernate/M2uUser.hbm.xml" /> |
|
44 |
<mapping resource="my/com/upass/maybank/entities/hibernate/StockUser.hbm.xml" /> |
|
45 |
<mapping resource="my/com/upass/maybank/entities/hibernate/TicketingUser.hbm.xml" /> |
|
46 |
</session-factory> |
|
47 |
</hibernate-configuration> |
src/main/resources/hibernate.maybank-prod.cfg.xml | ||
---|---|---|
1 |
<?xml version='1.0' encoding='utf-8'?> |
|
2 |
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" |
|
3 |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|
4 |
|
|
5 |
<hibernate-configuration> |
|
6 |
<session-factory> |
|
7 |
<!-- Database connection settings --> |
|
8 |
|
|
9 |
<property name="connection.url">jdbc:oracle:thin:@172.31.11.50:1521:ibd</property> |
|
10 |
<property name="hibernate.connection.username">upassdev</property> |
|
11 |
<property name="hibernate.connection.password">upassdev</property> |
|
12 |
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> |
|
13 |
|
|
14 |
<!-- Database connection settings --> |
|
15 |
<!-- SQL dialect --> |
|
16 |
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property> |
|
17 |
|
|
18 |
<!-- Use the C3P0 connection pool provider --> |
|
19 |
<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property> |
|
20 |
<property name="hibernate.c3p0.acquire_increment">5</property> |
|
21 |
<property name="hibernate.c3p0.min_size">20</property> |
|
22 |
<property name="hibernate.c3p0.max_size">50</property> |
|
23 |
<property name="hibernate.c3p0.timeout">120</property> |
|
24 |
<property name="hibernate.c3p0.max_statements">0</property> |
|
25 |
|
|
26 |
<!-- Enable Hibernate's automatic session context management --> |
|
27 |
<property name="current_session_context_class">thread</property> |
|
28 |
|
|
29 |
<!-- Disable the second-level cache --> |
|
30 |
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> |
|
31 |
|
|
32 |
<!-- Echo all executed SQL to stdout --> |
|
33 |
<property name="show_sql">false</property> |
|
34 |
<property name="format_sql">true</property> |
|
35 |
|
|
36 |
<property name="hibernate.hbm2ddl.auto">none</property> |
|
37 |
|
|
38 |
<!-- Mapping files --> |
|
39 |
<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" /> |
|
40 |
<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" /> |
|
41 |
<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" /> |
|
42 |
<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" /> |
|
43 |
<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" /> |
|
44 |
<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" /> |
|
45 |
<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" /> |
|
46 |
<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" /> |
|
47 |
<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" /> |
|
48 |
<mapping resource="my/com/upass/hibernate/ClientApp.hbm.xml" /> |
|
49 |
<mapping resource="my/com/upass/hibernate/UserAppAccess.hbm.xml" /> |
|
50 |
<mapping resource="my/com/upass/maybank/entities/hibernate/IbccUser.hbm.xml" /> |
|
51 |
<mapping resource="my/com/upass/maybank/entities/hibernate/Im2uUser.hbm.xml" /> |
|
52 |
<mapping resource="my/com/upass/maybank/entities/hibernate/M2uUser.hbm.xml" /> |
|
53 |
<mapping resource="my/com/upass/maybank/entities/hibernate/StockUser.hbm.xml" /> |
|
54 |
<mapping resource="my/com/upass/maybank/entities/hibernate/TicketingUser.hbm.xml" /> |
|
55 |
</session-factory> |
|
56 |
</hibernate-configuration> |
src/main/resources/hibernate.staging-ci.cfg.xml | ||
---|---|---|
1 |
<?xml version='1.0' encoding='utf-8'?> |
|
2 |
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" |
|
3 |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|
4 |
|
|
5 |
<hibernate-configuration> |
|
6 |
<session-factory> |
|
7 |
<!-- Database connection settings --> |
|
8 |
<property name="connection.url">jdbc:oracle:thin:@localhost:1521:XE</property> |
|
9 |
<!-- <property name="connection.url">jdbc:oracle:thin:@192.168.1.126:1521:IBSDEMO</property> --> |
|
10 |
<property name="hibernate.connection.username">M2U_UPASS_CI</property> |
|
11 |
<property name="hibernate.connection.password">ci123</property> |
|
12 |
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> |
|
13 |
<!-- SQL dialect --> |
|
14 |
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property> |
|
15 |
|
|
16 |
<!-- Use the C3P0 connection pool provider --> |
|
17 |
<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property> |
|
18 |
<property name="hibernate.c3p0.acquire_increment">5</property> |
|
19 |
<property name="hibernate.c3p0.min_size">20</property> |
|
20 |
<property name="hibernate.c3p0.max_size">50</property> |
|
21 |
<property name="hibernate.c3p0.timeout">120</property> |
|
22 |
<property name="hibernate.c3p0.max_statements">0</property> |
|
23 |
<!-- Enable Hibernate's automatic session context management --> |
|
24 |
<property name="current_session_context_class">thread</property> |
|
25 |
|
|
26 |
<!-- Disable the second-level cache --> |
|
27 |
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> |
|
28 |
|
|
29 |
<!-- Echo all executed SQL to stdout --> |
|
30 |
<property name="show_sql">false</property> |
|
31 |
<property name="format_sql">true</property> |
|
32 |
|
|
33 |
<property name="hibernate.hbm2ddl.auto">none</property> |
|
34 |
|
|
35 |
<!-- Mapping files --> |
|
36 |
<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" /> |
|
37 |
<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" /> |
|
38 |
<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" /> |
|
39 |
<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" /> |
|
40 |
<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" /> |
|
41 |
<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" /> |
|
42 |
<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" /> |
|
43 |
<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" /> |
|
44 |
<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" /> |
|
45 |
<!-- |
|
46 |
<mapping resource="my/com/upass/hibernate/TbAmGemalto.hbm.xml" /> |
|
47 |
<mapping resource="my/com/upass/hibernate/TbAmVasco.hbm.xml" /> |
|
48 |
--> |
|
49 |
|
|
50 |
<mapping resource="my/com/upass/hibernate/ClientApp.hbm.xml" /> |
|
51 |
<mapping resource="my/com/upass/hibernate/UserAppAccess.hbm.xml" /> |
|
52 |
<mapping resource="my/com/upass/maybank/entities/hibernate/IbccUser.hbm.xml" /> |
|
53 |
<mapping resource="my/com/upass/maybank/entities/hibernate/Im2uUser.hbm.xml" /> |
|
54 |
<mapping resource="my/com/upass/maybank/entities/hibernate/M2uUser.hbm.xml" /> |
|
55 |
<mapping resource="my/com/upass/maybank/entities/hibernate/StockUser.hbm.xml" /> |
|
56 |
<mapping resource="my/com/upass/maybank/entities/hibernate/TicketingUser.hbm.xml" /> |
|
57 |
</session-factory> |
|
58 |
</hibernate-configuration> |
Also available in: Unified diff