Revision 69:305a38ea01f0

View differences:

pom.xml
174 174
		 	</dependencies>
175 175
		</profile>
176 176
		<profile>
177
			<id>env-maybank-dev-jndi</id>
178
			<activation>
179
				<property>
180
					<name>env</name>
181
					<value>maybank-dev-jndi</value>
182
				</property>
183
			</activation>
184
			<properties>
185
				<config.postfix>.maybank-dev-jndi</config.postfix>
186
			</properties>
187
			<dependencies>
188
				<dependency>
189
		 			<groupId>org.hibernate</groupId>
190
		 			<artifactId>hibernate-core</artifactId>
191
		 			<version>3.3.1.GA</version>
192
		 			<type>jar</type>
193
		 			<scope>compile</scope>
194
		 			<exclusions>
195
						<exclusion>
196
							<groupId>xml-apis</groupId>
197
							<artifactId>xml-apis</artifactId>
198
						</exclusion>
199
					</exclusions>
200
		 		</dependency>
201
		 	</dependencies>
202
		</profile>
203
		<profile>
177 204
			<id>cobertura-instrument</id>
178 205
			<activation>
179 206
				<property>
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
6 6
	<session-factory>
7 7
		<!-- Database connection settings -->
8 8

  
9
<!--
10 9
 		<property name="connection.url">jdbc:oracle:thin:@172.31.11.50:1521:ibd</property>
11 10
		<property name="hibernate.connection.username">upassdev</property>
12 11
		<property name="hibernate.connection.password">upassdev</property>
13 12
		<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 13
		
20 14
		<!-- Database connection settings -->
21 15
		<!-- SQL dialect -->
src/main/resources/upassMin.maybank-dev-jndi.properties
1
# NOTE:
2
# Make sure there is no tailing space at the parameter, eg "...=3" and not "...=3  "
3
# Tailing space will cause "ERR: property Not Found" exception.
4

  
5
# Flag to get parameters from Database
6
DB_USE_SETTING=1
7

  
8
# Migration period flag
9
MIGRATION_PERIOD=Y
src/main/resources/upassMin.maybank-dev.properties
2 2
# Make sure there is no tailing space at the parameter, eg "...=3" and not "...=3  "
3 3
# Tailing space will cause "ERR: property Not Found" exception.
4 4

  
5
# Database Connection Info for testing
6
DB_DRIVER=oracle.jdbc.driver.OracleDriver
7
DB_URL=jdbc:oracle:thin:@172.31.11.50:1521:ibd
8
DB_USERNAME=upassdev
9
DB_PASSWORD=upassdev
10

  
11
# Database Connection info for JNDI
12
# org.jboss.resource.adapter.jdbc.jdk5.WrappedConnectionJDK5@bb2f6e
13
DB_USE_JNDI=N
14
DB_DATASRC_REF=java:OracleUpassDS
15

  
5 16
# Flag to get parameters from Database
6 17
DB_USE_SETTING=1
7 18

  

Also available in: Unified diff