Hibernate SVN: r18365 - core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/criteria.
by hibernate-commits@lists.jboss.org
Author: stliu
Date: 2009-12-30 04:07:51 -0500 (Wed, 30 Dec 2009)
New Revision: 18365
Modified:
core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/criteria/LongInElementsTest.java
Log:
JBPAPP-3089 HHH-2166 - Long 'in' lists in queries results in a Java stack overflow exception.
Modified: core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/criteria/LongInElementsTest.java
===================================================================
--- core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/criteria/LongInElementsTest.java 2009-12-30 09:06:50 UTC (rev 18364)
+++ core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/criteria/LongInElementsTest.java 2009-12-30 09:07:51 UTC (rev 18365)
@@ -32,7 +32,6 @@
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.criterion.Restrictions;
-import org.hibernate.dialect.Dialect;
import org.hibernate.dialect.Oracle8iDialect;
import org.hibernate.dialect.SQLServerDialect;
import org.hibernate.junit.functional.FunctionalTestCase;
@@ -40,81 +39,85 @@
/**
*
- * HHH-2166 Long "in" lists in queries results in a Java stack overflow exception.
- * to reproduce this issue, you should add "<argLine>-Xss128k</argLine>" to the surefire plugin (test on Fedora 12)
+ * HHH-2166 Long "in" lists in queries results in a Java stack overflow
+ * exception. to reproduce this issue, you should add
+ * "<argLine>-Xss128k</argLine>" to the surefire plugin (test on Fedora 12)
*
* @author Strong Liu
*/
public class LongInElementsTest extends FunctionalTestCase {
-
+
private static final int ELEMENTS_SIZE = 4000;
-
+
public LongInElementsTest( String string ) {
- super(string);
+ super( string );
}
public String[] getMappings() {
return new String[] { "criteria/Animal.hbm.xml" };
}
-
- //HHH-2166
- public void testLongInElementsByHQL(){
+
+ // HHH-2166
+ public void testLongInElementsByHQL() {
+ if ( (getDialect() instanceof SQLServerDialect)
+ || (getDialect() instanceof Oracle8iDialect) ){
+ skipExpectedFailure( new Exception("this test fails on oracle and ms sql server, for more info, see HHH-1123") );
+ }
Session session = openSession();
Transaction t = session.beginTransaction();
StateProvince beijing = new StateProvince();
- beijing.setIsoCode("100089");
- beijing.setName("beijing");
- session.persist(beijing);
+ beijing.setIsoCode( "100089" );
+ beijing.setName( "beijing" );
+ session.persist( beijing );
session.flush();
session.clear();
-
- Query query = session.createQuery("from org.hibernate.test.hql.StateProvince sp where sp.id in ( :idList )");
+
+ Query query = session
+ .createQuery( "from org.hibernate.test.hql.StateProvince sp where sp.id in ( :idList )" );
query.setParameterList( "idList" , createLotsOfElements() );
List list = query.list();
session.flush();
session.clear();
- assertEquals( 1, list.size() );
- session.delete(beijing);
+ assertEquals( 1 , list.size() );
+ session.delete( beijing );
t.commit();
session.close();
-
+
}
-
- //HHH-2166
- public void testLongInElementsByCriteria(){
+
+ // HHH-2166
+ public void testLongInElementsByCriteria() {
+ if ( (getDialect() instanceof SQLServerDialect)
+ || (getDialect() instanceof Oracle8iDialect) ){
+ skipExpectedFailure( new Exception("this test fails on oracle and ms sql server, for more info, see HHH-1123") );
+ }
Session session = openSession();
Transaction t = session.beginTransaction();
StateProvince beijing = new StateProvince();
- beijing.setIsoCode("100089");
- beijing.setName("beijing");
- session.persist(beijing);
+ beijing.setIsoCode( "100089" );
+ beijing.setName( "beijing" );
+ session.persist( beijing );
session.flush();
session.clear();
-
- Criteria criteria = session.createCriteria(StateProvince.class);
- criteria.add(Restrictions.in("id", createLotsOfElements()));
+
+ Criteria criteria = session.createCriteria( StateProvince.class );
+ criteria.add( Restrictions.in( "id" , createLotsOfElements() ) );
List list = criteria.list();
session.flush();
session.clear();
- assertEquals( 1, list.size() );
- session.delete(beijing);
+ assertEquals( 1 , list.size() );
+ session.delete( beijing );
t.commit();
session.close();
-
+
}
-
- public boolean appliesTo( Dialect dialect ) {
- //HHH-1123
- return !(dialect instanceof SQLServerDialect) && !(dialect instanceof Oracle8iDialect);
-
- }
- private List createLotsOfElements(){
+ private List createLotsOfElements() {
List list = new ArrayList();
- for ( int i = 0; i < ELEMENTS_SIZE; i++ ){
- list.add(Long.valueOf(i));
+ for ( int i = 0; i < ELEMENTS_SIZE; i++ ) {
+ list.add( Long.valueOf( i ) );
}
return list;
}
14 years, 11 months
Hibernate SVN: r18364 - core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/criteria.
by hibernate-commits@lists.jboss.org
Author: stliu
Date: 2009-12-30 04:06:50 -0500 (Wed, 30 Dec 2009)
New Revision: 18364
Modified:
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/criteria/LongInElementsTest.java
Log:
JBPAPP-3089 HHH-2166 - Long 'in' lists in queries results in a Java stack overflow exception.
Modified: core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/criteria/LongInElementsTest.java
===================================================================
--- core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/criteria/LongInElementsTest.java 2009-12-30 08:49:46 UTC (rev 18363)
+++ core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/criteria/LongInElementsTest.java 2009-12-30 09:06:50 UTC (rev 18364)
@@ -32,7 +32,6 @@
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.criterion.Restrictions;
-import org.hibernate.dialect.Dialect;
import org.hibernate.dialect.Oracle8iDialect;
import org.hibernate.dialect.SQLServerDialect;
import org.hibernate.junit.functional.FunctionalTestCase;
@@ -40,82 +39,85 @@
/**
*
- * HHH-2166 Long "in" lists in queries results in a Java stack overflow exception.
- * to reproduce this issue, you should add "<argLine>-Xss128k</argLine>" to the surefire plugin (test on Fedora 12)
+ * HHH-2166 Long "in" lists in queries results in a Java stack overflow
+ * exception. to reproduce this issue, you should add
+ * "<argLine>-Xss128k</argLine>" to the surefire plugin (test on Fedora 12)
*
* @author Strong Liu
*/
public class LongInElementsTest extends FunctionalTestCase {
-
+
private static final int ELEMENTS_SIZE = 4000;
-
+
public LongInElementsTest( String string ) {
- super(string);
+ super( string );
}
public String[] getMappings() {
return new String[] { "criteria/Animal.hbm.xml" };
}
-
- //HHH-2166
- public void testLongInElementsByHQL(){
+
+ // HHH-2166
+ public void testLongInElementsByHQL() {
+ if ( (getDialect() instanceof SQLServerDialect)
+ || (getDialect() instanceof Oracle8iDialect) ){
+ skipExpectedFailure( new Exception("this test fails on oracle and ms sql server, for more info, see HHH-1123") );
+ }
Session session = openSession();
Transaction t = session.beginTransaction();
StateProvince beijing = new StateProvince();
- beijing.setIsoCode("100089");
- beijing.setName("beijing");
- session.persist(beijing);
+ beijing.setIsoCode( "100089" );
+ beijing.setName( "beijing" );
+ session.persist( beijing );
session.flush();
session.clear();
-
- Query query = session.createQuery("from org.hibernate.test.hql.StateProvince sp where sp.id in ( :idList )");
+
+ Query query = session
+ .createQuery( "from org.hibernate.test.hql.StateProvince sp where sp.id in ( :idList )" );
query.setParameterList( "idList" , createLotsOfElements() );
List list = query.list();
session.flush();
session.clear();
- assertEquals( 1, list.size() );
- session.delete(beijing);
+ assertEquals( 1 , list.size() );
+ session.delete( beijing );
t.commit();
session.close();
-
+
}
-
- //HHH-2166
- public void testLongInElementsByCriteria(){
+
+ // HHH-2166
+ public void testLongInElementsByCriteria() {
+ if ( (getDialect() instanceof SQLServerDialect)
+ || (getDialect() instanceof Oracle8iDialect) ){
+ skipExpectedFailure( new Exception("this test fails on oracle and ms sql server, for more info, see HHH-1123") );
+ }
Session session = openSession();
Transaction t = session.beginTransaction();
StateProvince beijing = new StateProvince();
- beijing.setIsoCode("100089");
- beijing.setName("beijing");
- session.persist(beijing);
+ beijing.setIsoCode( "100089" );
+ beijing.setName( "beijing" );
+ session.persist( beijing );
session.flush();
session.clear();
-
- Criteria criteria = session.createCriteria(StateProvince.class);
- criteria.add(Restrictions.in("id", createLotsOfElements()));
+
+ Criteria criteria = session.createCriteria( StateProvince.class );
+ criteria.add( Restrictions.in( "id" , createLotsOfElements() ) );
List list = criteria.list();
session.flush();
session.clear();
- assertEquals( 1, list.size() );
- session.delete(beijing);
+ assertEquals( 1 , list.size() );
+ session.delete( beijing );
t.commit();
session.close();
-
+
}
-
- @Override
- public boolean appliesTo( Dialect dialect ) {
- //HHH-1123
- return !(dialect instanceof SQLServerDialect) && !(dialect instanceof Oracle8iDialect);
-
- }
- private List createLotsOfElements(){
+ private List createLotsOfElements() {
List list = new ArrayList();
- for ( int i = 0; i < ELEMENTS_SIZE; i++ ){
- list.add(Long.valueOf(i));
+ for ( int i = 0; i < ELEMENTS_SIZE; i++ ) {
+ list.add( Long.valueOf( i ) );
}
return list;
}
14 years, 11 months
Hibernate SVN: r18363 - in annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations: entity and 1 other directory.
by hibernate-commits@lists.jboss.org
Author: stliu
Date: 2009-12-30 03:49:46 -0500 (Wed, 30 Dec 2009)
New Revision: 18363
Modified:
annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/EntityTest.java
annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/entity/BasicHibernateAnnotationsTest.java
Log:
JBPAPP-3315 default batch_versioned_data =true cause two test case fails on oracle
Modified: annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/EntityTest.java
===================================================================
--- annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/EntityTest.java 2009-12-29 23:43:48 UTC (rev 18362)
+++ annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/EntityTest.java 2009-12-30 08:49:46 UTC (rev 18363)
@@ -12,6 +12,8 @@
import org.hibernate.Session;
import org.hibernate.StaleStateException;
import org.hibernate.Transaction;
+import org.hibernate.cfg.Configuration;
+import org.hibernate.cfg.Environment;
/**
* @author Emmanuel Bernard
@@ -21,7 +23,12 @@
public EntityTest(String x) {
super( x );
}
-
+
+ @Override
+ protected void configure( Configuration cfg ) {
+ cfg.setProperty( Environment.BATCH_VERSIONED_DATA , "false" );
+ }
+
public void testLoad() throws Exception {
//put an object in DB
assertEquals( "Flight", getCfg().getClassMapping( Flight.class.getName() ).getTable().getName() );
Modified: annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/entity/BasicHibernateAnnotationsTest.java
===================================================================
--- annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/entity/BasicHibernateAnnotationsTest.java 2009-12-29 23:43:48 UTC (rev 18362)
+++ annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/entity/BasicHibernateAnnotationsTest.java 2009-12-30 08:49:46 UTC (rev 18363)
@@ -10,6 +10,8 @@
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Transaction;
+import org.hibernate.cfg.Configuration;
+import org.hibernate.cfg.Environment;
import org.hibernate.test.annotations.TestCase;
/**
@@ -17,6 +19,11 @@
*/
public class BasicHibernateAnnotationsTest extends TestCase {
+ @Override
+ protected void configure( Configuration cfg ) {
+ cfg.setProperty( Environment.BATCH_VERSIONED_DATA , "false" );
+ }
+
public void testEntity() throws Exception {
if( !getDialect().supportsExpectedLobUsagePattern() ){
return;
14 years, 11 months
Hibernate SVN: r18362 - search/branches/v3_1_1_GA_CP.
by hibernate-commits@lists.jboss.org
Author: stliu
Date: 2009-12-29 18:43:48 -0500 (Tue, 29 Dec 2009)
New Revision: 18362
Modified:
search/branches/v3_1_1_GA_CP/pom.xml
Log:
JBPAPP-3218 update db profile in hibernate eap 5 cp branch
Modified: search/branches/v3_1_1_GA_CP/pom.xml
===================================================================
--- search/branches/v3_1_1_GA_CP/pom.xml 2009-12-29 23:42:42 UTC (rev 18361)
+++ search/branches/v3_1_1_GA_CP/pom.xml 2009-12-29 23:43:48 UTC (rev 18362)
@@ -694,7 +694,86 @@
</properties>
</profile>
+ <!-- The Oracle11g test envionment for jdk1.5 -->
+ <profile>
+ <id>oracle11g-jdbc3</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.oracle</groupId>
+ <artifactId>ojdbc14</artifactId>
+ <version>10.2.0.4</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <properties>
+ <db.dialect>org.hibernate.dialect.Oracle10gDialect</db.dialect>
+ <jdbc.driver>oracle.jdbc.driver.OracleDriver</jdbc.driver>
+ <jdbc.url>jdbc:oracle:thin:@dev04.qa.atl2.redhat.com:1521:qaora11</jdbc.url>
+ <jdbc.user>hibbr330</jdbc.user>
+ <jdbc.pass>hibbr330</jdbc.pass>
+ <jdbc.isolation/>
+ </properties>
+ </profile>
+ <!-- The Oracle11gRAC test envionment for jdk1.5-->
+ <profile>
+ <id>oracle11gRAC-jdbc3</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.oracle</groupId>
+ <artifactId>ojdbc14</artifactId>
+ <version>10.2.0.4</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <properties>
+ <db.dialect>org.hibernate.dialect.Oracle10gDialect</db.dialect>
+ <jdbc.driver>oracle.jdbc.driver.OracleDriver</jdbc.driver>
+ <jdbc.url>jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=ON)(ADDRESS=(PROTOCOL=TCP)(HOST=vmg24-vip.mw.lab.eng.bos.redhat.com)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=vmg25-vip.mw.lab.eng.bos.redhat.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=qarac.jboss)))</jdbc.url>
+ <jdbc.user>hibbr330</jdbc.user>
+ <jdbc.pass>hibbr330</jdbc.pass>
+ <jdbc.isolation/>
+ </properties>
+ </profile>
+ <!-- The SQLServer2005 (MS JDBC) test envionment for jdk1.5 -->
+ <profile>
+ <id>mssql2005-jdbc3</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.microsoft.sqlserver</groupId>
+ <artifactId>msjdbc</artifactId>
+ <version>1.1</version>
+ </dependency>
+ </dependencies>
+ <properties>
+ <db.dialect>org.hibernate.dialect.SQLServerDialect</db.dialect>
+ <jdbc.driver>com.microsoft.sqlserver.jdbc.SQLServerDriver</jdbc.driver>
+ <jdbc.url>jdbc:sqlserver://dev30.qa.atl.jboss.com:3918</jdbc.url>
+ <jdbc.user>hibbr330</jdbc.user>
+ <jdbc.pass>hibbr330</jdbc.pass>
+ <jdbc.isolation>4096</jdbc.isolation>
+ </properties>
+ </profile>
+ <!-- The SQLServer2005 (MS JDBC) test envionment for jdk1.5-->
+ <profile>
+ <id>mssql2008-jdbc3</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.microsoft.sqlserver</groupId>
+ <artifactId>msjdbc</artifactId>
+ <version>2.0.1008.2</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <properties>
+ <db.dialect>org.hibernate.dialect.SQLServerDialect</db.dialect>
+ <jdbc.driver>com.microsoft.sqlserver.jdbc.SQLServerDriver</jdbc.driver>
+ <jdbc.url>jdbc:sqlserver://vmg04.mw.lab.eng.bos.redhat.com:1433</jdbc.url>
+ <jdbc.user>hibbr330</jdbc.user>
+ <jdbc.pass>hibbr330</jdbc.pass>
+ <jdbc.isolation>4096</jdbc.isolation>
+ </properties>
+ </profile>
<!-- ================================ -->
<!-- Dependecy profiles to test w and -->
<!-- w/o optional dependencies -->
14 years, 11 months
Hibernate SVN: r18361 - entitymanager/branches/v3_4_0_GA_CP.
by hibernate-commits@lists.jboss.org
Author: stliu
Date: 2009-12-29 18:42:42 -0500 (Tue, 29 Dec 2009)
New Revision: 18361
Modified:
entitymanager/branches/v3_4_0_GA_CP/pom.xml
Log:
JBPAPP-3218 update db profile in hibernate eap 5 cp branch
Modified: entitymanager/branches/v3_4_0_GA_CP/pom.xml
===================================================================
--- entitymanager/branches/v3_4_0_GA_CP/pom.xml 2009-12-29 23:42:00 UTC (rev 18360)
+++ entitymanager/branches/v3_4_0_GA_CP/pom.xml 2009-12-29 23:42:42 UTC (rev 18361)
@@ -785,6 +785,86 @@
<jdbc.isolation>4096</jdbc.isolation>
</properties>
</profile>
+ <!-- The Oracle11g test envionment for jdk1.5 -->
+ <profile>
+ <id>oracle11g-jdbc3</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.oracle</groupId>
+ <artifactId>ojdbc14</artifactId>
+ <version>10.2.0.4</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <properties>
+ <db.dialect>org.hibernate.dialect.Oracle10gDialect</db.dialect>
+ <jdbc.driver>oracle.jdbc.driver.OracleDriver</jdbc.driver>
+ <jdbc.url>jdbc:oracle:thin:@dev04.qa.atl2.redhat.com:1521:qaora11</jdbc.url>
+ <jdbc.user>hibbr330</jdbc.user>
+ <jdbc.pass>hibbr330</jdbc.pass>
+ <jdbc.isolation/>
+ </properties>
+ </profile>
+ <!-- The Oracle11gRAC test envionment for jdk1.5-->
+ <profile>
+ <id>oracle11gRAC-jdbc3</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.oracle</groupId>
+ <artifactId>ojdbc14</artifactId>
+ <version>10.2.0.4</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <properties>
+ <db.dialect>org.hibernate.dialect.Oracle10gDialect</db.dialect>
+ <jdbc.driver>oracle.jdbc.driver.OracleDriver</jdbc.driver>
+ <jdbc.url>jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=ON)(ADDRESS=(PROTOCOL=TCP)(HOST=vmg24-vip.mw.lab.eng.bos.redhat.com)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=vmg25-vip.mw.lab.eng.bos.redhat.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=qarac.jboss)))</jdbc.url>
+ <jdbc.user>hibbr330</jdbc.user>
+ <jdbc.pass>hibbr330</jdbc.pass>
+ <jdbc.isolation/>
+ </properties>
+ </profile>
+ <!-- The SQLServer2005 (MS JDBC) test envionment for jdk1.5 -->
+ <profile>
+ <id>mssql2005-jdbc3</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.microsoft.sqlserver</groupId>
+ <artifactId>msjdbc</artifactId>
+ <version>1.1</version>
+ </dependency>
+ </dependencies>
+ <properties>
+ <db.dialect>org.hibernate.dialect.SQLServerDialect</db.dialect>
+ <jdbc.driver>com.microsoft.sqlserver.jdbc.SQLServerDriver</jdbc.driver>
+ <jdbc.url>jdbc:sqlserver://dev30.qa.atl.jboss.com:3918</jdbc.url>
+ <jdbc.user>hibbr330</jdbc.user>
+ <jdbc.pass>hibbr330</jdbc.pass>
+ <jdbc.isolation>4096</jdbc.isolation>
+ </properties>
+ </profile>
+
+ <!-- The SQLServer2005 (MS JDBC) test envionment for jdk1.5-->
+ <profile>
+ <id>mssql2008-jdbc3</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.microsoft.sqlserver</groupId>
+ <artifactId>msjdbc</artifactId>
+ <version>2.0.1008.2</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <properties>
+ <db.dialect>org.hibernate.dialect.SQLServerDialect</db.dialect>
+ <jdbc.driver>com.microsoft.sqlserver.jdbc.SQLServerDriver</jdbc.driver>
+ <jdbc.url>jdbc:sqlserver://vmg04.mw.lab.eng.bos.redhat.com:1433</jdbc.url>
+ <jdbc.user>hibbr330</jdbc.user>
+ <jdbc.pass>hibbr330</jdbc.pass>
+ <jdbc.isolation>4096</jdbc.isolation>
+ </properties>
+ </profile>
</profiles>
<properties>
<slf4jVersion>1.5.8</slf4jVersion>
14 years, 11 months
Hibernate SVN: r18360 - annotations/branches/v3_4_0_GA_CP.
by hibernate-commits@lists.jboss.org
Author: stliu
Date: 2009-12-29 18:42:00 -0500 (Tue, 29 Dec 2009)
New Revision: 18360
Modified:
annotations/branches/v3_4_0_GA_CP/pom.xml
Log:
JBPAPP-3218 update db profile in hibernate eap 5 cp branch
Modified: annotations/branches/v3_4_0_GA_CP/pom.xml
===================================================================
--- annotations/branches/v3_4_0_GA_CP/pom.xml 2009-12-29 23:41:09 UTC (rev 18359)
+++ annotations/branches/v3_4_0_GA_CP/pom.xml 2009-12-29 23:42:00 UTC (rev 18360)
@@ -780,6 +780,86 @@
<jdbc.isolation>4096</jdbc.isolation>
</properties>
</profile>
+ <!-- The Oracle11g test envionment for jdk1.5 -->
+ <profile>
+ <id>oracle11g-jdbc3</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.oracle</groupId>
+ <artifactId>ojdbc14</artifactId>
+ <version>10.2.0.4</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <properties>
+ <db.dialect>org.hibernate.dialect.Oracle10gDialect</db.dialect>
+ <jdbc.driver>oracle.jdbc.driver.OracleDriver</jdbc.driver>
+ <jdbc.url>jdbc:oracle:thin:@dev04.qa.atl2.redhat.com:1521:qaora11</jdbc.url>
+ <jdbc.user>hibbr330</jdbc.user>
+ <jdbc.pass>hibbr330</jdbc.pass>
+ <jdbc.isolation/>
+ </properties>
+ </profile>
+ <!-- The Oracle11gRAC test envionment for jdk1.5-->
+ <profile>
+ <id>oracle11gRAC-jdbc3</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.oracle</groupId>
+ <artifactId>ojdbc14</artifactId>
+ <version>10.2.0.4</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <properties>
+ <db.dialect>org.hibernate.dialect.Oracle10gDialect</db.dialect>
+ <jdbc.driver>oracle.jdbc.driver.OracleDriver</jdbc.driver>
+ <jdbc.url>jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=ON)(ADDRESS=(PROTOCOL=TCP)(HOST=vmg24-vip.mw.lab.eng.bos.redhat.com)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=vmg25-vip.mw.lab.eng.bos.redhat.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=qarac.jboss)))</jdbc.url>
+ <jdbc.user>hibbr330</jdbc.user>
+ <jdbc.pass>hibbr330</jdbc.pass>
+ <jdbc.isolation/>
+ </properties>
+ </profile>
+ <!-- The SQLServer2005 (MS JDBC) test envionment for jdk1.5 -->
+ <profile>
+ <id>mssql2005-jdbc3</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.microsoft.sqlserver</groupId>
+ <artifactId>msjdbc</artifactId>
+ <version>1.1</version>
+ </dependency>
+ </dependencies>
+ <properties>
+ <db.dialect>org.hibernate.dialect.SQLServerDialect</db.dialect>
+ <jdbc.driver>com.microsoft.sqlserver.jdbc.SQLServerDriver</jdbc.driver>
+ <jdbc.url>jdbc:sqlserver://dev30.qa.atl.jboss.com:3918</jdbc.url>
+ <jdbc.user>hibbr330</jdbc.user>
+ <jdbc.pass>hibbr330</jdbc.pass>
+ <jdbc.isolation>4096</jdbc.isolation>
+ </properties>
+ </profile>
+
+ <!-- The SQLServer2005 (MS JDBC) test envionment for jdk1.5-->
+ <profile>
+ <id>mssql2008-jdbc3</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.microsoft.sqlserver</groupId>
+ <artifactId>msjdbc</artifactId>
+ <version>2.0.1008.2</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <properties>
+ <db.dialect>org.hibernate.dialect.SQLServerDialect</db.dialect>
+ <jdbc.driver>com.microsoft.sqlserver.jdbc.SQLServerDriver</jdbc.driver>
+ <jdbc.url>jdbc:sqlserver://vmg04.mw.lab.eng.bos.redhat.com:1433</jdbc.url>
+ <jdbc.user>hibbr330</jdbc.user>
+ <jdbc.pass>hibbr330</jdbc.pass>
+ <jdbc.isolation>4096</jdbc.isolation>
+ </properties>
+ </profile>
</profiles>
<properties>
<slf4jVersion>1.5.8</slf4jVersion>
14 years, 11 months
Hibernate SVN: r18359 - core/branches/Branch_3_3_2_GA_CP/parent.
by hibernate-commits@lists.jboss.org
Author: stliu
Date: 2009-12-29 18:41:09 -0500 (Tue, 29 Dec 2009)
New Revision: 18359
Modified:
core/branches/Branch_3_3_2_GA_CP/parent/pom.xml
Log:
JBPAPP-3218 update db profile in hibernate eap 5 cp branch
Modified: core/branches/Branch_3_3_2_GA_CP/parent/pom.xml
===================================================================
--- core/branches/Branch_3_3_2_GA_CP/parent/pom.xml 2009-12-29 23:23:12 UTC (rev 18358)
+++ core/branches/Branch_3_3_2_GA_CP/parent/pom.xml 2009-12-29 23:41:09 UTC (rev 18359)
@@ -646,6 +646,7 @@
<jdbc.isolation/>
</properties>
</profile>
+
<!-- The Oracle11gRAC test envionment -->
<profile>
<id>oracle11gRAC</id>
@@ -727,6 +728,86 @@
<jdbc.isolation>4096</jdbc.isolation>
</properties>
</profile>
+ <!-- The Oracle11g test envionment for jdk1.5 -->
+ <profile>
+ <id>oracle11g-jdbc3</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.oracle</groupId>
+ <artifactId>ojdbc14</artifactId>
+ <version>10.2.0.4</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <properties>
+ <db.dialect>org.hibernate.dialect.Oracle10gDialect</db.dialect>
+ <jdbc.driver>oracle.jdbc.driver.OracleDriver</jdbc.driver>
+ <jdbc.url>jdbc:oracle:thin:@dev04.qa.atl2.redhat.com:1521:qaora11</jdbc.url>
+ <jdbc.user>hibbr330</jdbc.user>
+ <jdbc.pass>hibbr330</jdbc.pass>
+ <jdbc.isolation/>
+ </properties>
+ </profile>
+ <!-- The Oracle11gRAC test envionment for jdk1.5-->
+ <profile>
+ <id>oracle11gRAC-jdbc3</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.oracle</groupId>
+ <artifactId>ojdbc14</artifactId>
+ <version>10.2.0.4</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <properties>
+ <db.dialect>org.hibernate.dialect.Oracle10gDialect</db.dialect>
+ <jdbc.driver>oracle.jdbc.driver.OracleDriver</jdbc.driver>
+ <jdbc.url>jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=ON)(ADDRESS=(PROTOCOL=TCP)(HOST=vmg24-vip.mw.lab.eng.bos.redhat.com)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=vmg25-vip.mw.lab.eng.bos.redhat.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=qarac.jboss)))</jdbc.url>
+ <jdbc.user>hibbr330</jdbc.user>
+ <jdbc.pass>hibbr330</jdbc.pass>
+ <jdbc.isolation/>
+ </properties>
+ </profile>
+ <!-- The SQLServer2005 (MS JDBC) test envionment for jdk1.5 -->
+ <profile>
+ <id>mssql2005-jdbc3</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.microsoft.sqlserver</groupId>
+ <artifactId>msjdbc</artifactId>
+ <version>1.1</version>
+ </dependency>
+ </dependencies>
+ <properties>
+ <db.dialect>org.hibernate.dialect.SQLServerDialect</db.dialect>
+ <jdbc.driver>com.microsoft.sqlserver.jdbc.SQLServerDriver</jdbc.driver>
+ <jdbc.url>jdbc:sqlserver://dev30.qa.atl.jboss.com:3918</jdbc.url>
+ <jdbc.user>hibbr330</jdbc.user>
+ <jdbc.pass>hibbr330</jdbc.pass>
+ <jdbc.isolation>4096</jdbc.isolation>
+ </properties>
+ </profile>
+
+ <!-- The SQLServer2005 (MS JDBC) test envionment for jdk1.5-->
+ <profile>
+ <id>mssql2008-jdbc3</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.microsoft.sqlserver</groupId>
+ <artifactId>msjdbc</artifactId>
+ <version>2.0.1008.2</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <properties>
+ <db.dialect>org.hibernate.dialect.SQLServerDialect</db.dialect>
+ <jdbc.driver>com.microsoft.sqlserver.jdbc.SQLServerDriver</jdbc.driver>
+ <jdbc.url>jdbc:sqlserver://vmg04.mw.lab.eng.bos.redhat.com:1433</jdbc.url>
+ <jdbc.user>hibbr330</jdbc.user>
+ <jdbc.pass>hibbr330</jdbc.pass>
+ <jdbc.isolation>4096</jdbc.isolation>
+ </properties>
+ </profile>
</profiles>
<properties>
<slf4jVersion>1.5.8</slf4jVersion>
14 years, 11 months
Hibernate SVN: r18358 - core/branches/Branch_3_3/core/src/main/java/org/hibernate/hql/ast/util.
by hibernate-commits@lists.jboss.org
Author: stliu
Date: 2009-12-29 18:23:12 -0500 (Tue, 29 Dec 2009)
New Revision: 18358
Modified:
core/branches/Branch_3_3/core/src/main/java/org/hibernate/hql/ast/util/NodeTraverser.java
Log:
HHH-2166 Long 'in' lists in queries results in a Java stack overflow exception.
Modified: core/branches/Branch_3_3/core/src/main/java/org/hibernate/hql/ast/util/NodeTraverser.java
===================================================================
--- core/branches/Branch_3_3/core/src/main/java/org/hibernate/hql/ast/util/NodeTraverser.java 2009-12-29 23:22:37 UTC (rev 18357)
+++ core/branches/Branch_3_3/core/src/main/java/org/hibernate/hql/ast/util/NodeTraverser.java 2009-12-29 23:23:12 UTC (rev 18358)
@@ -46,7 +46,7 @@
public NodeTraverser( VisitationStrategy strategy ) {
this.strategy = strategy;
}
-
+
/**
* Traverse the AST tree depth first.
*
@@ -63,20 +63,26 @@
throw new IllegalArgumentException(
"node to traverse cannot be null!" );
}
- AST node = ast.getFirstChild();
+ visitDepthFirst( ast.getFirstChild() );
+ }
+
+ private void visitDepthFirst(AST ast){
+ if(ast==null){
+ return;
+ }
Stack stack = new Stack();
- if ( node != null ) {
- stack.push( node );
+ if ( ast != null ) {
+ stack.push( ast );
while (!stack.empty()) {
- node = (AST) stack.pop();
- strategy.visit( node );
- if ( node.getFirstChild() != null ) {
- stack.push( node.getFirstChild() );
- }
- if ( node.getNextSibling() != null ) {
- stack.push( node.getNextSibling() );
- }
+ ast = (AST) stack.pop();
+ strategy.visit( ast );
+ if ( ast.getNextSibling() != null )
+ stack.push( ast.getNextSibling() );
+ if ( ast.getFirstChild() != null )
+ stack.push( ast.getFirstChild() );
}
}
}
+
+
}
14 years, 11 months
Hibernate SVN: r18357 - core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/hql/ast/util.
by hibernate-commits@lists.jboss.org
Author: stliu
Date: 2009-12-29 18:22:37 -0500 (Tue, 29 Dec 2009)
New Revision: 18357
Modified:
core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/hql/ast/util/NodeTraverser.java
Log:
JBPAPP-3089 HHH-2166 Long 'in' lists in queries results in a Java stack overflow exception.
Modified: core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/hql/ast/util/NodeTraverser.java
===================================================================
--- core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/hql/ast/util/NodeTraverser.java 2009-12-29 23:21:44 UTC (rev 18356)
+++ core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/hql/ast/util/NodeTraverser.java 2009-12-29 23:22:37 UTC (rev 18357)
@@ -46,7 +46,7 @@
public NodeTraverser( VisitationStrategy strategy ) {
this.strategy = strategy;
}
-
+
/**
* Traverse the AST tree depth first.
*
@@ -63,20 +63,26 @@
throw new IllegalArgumentException(
"node to traverse cannot be null!" );
}
- AST node = ast.getFirstChild();
+ visitDepthFirst( ast.getFirstChild() );
+ }
+
+ private void visitDepthFirst(AST ast){
+ if(ast==null){
+ return;
+ }
Stack stack = new Stack();
- if ( node != null ) {
- stack.push( node );
+ if ( ast != null ) {
+ stack.push( ast );
while (!stack.empty()) {
- node = (AST) stack.pop();
- strategy.visit( node );
- if ( node.getFirstChild() != null ) {
- stack.push( node.getFirstChild() );
- }
- if ( node.getNextSibling() != null ) {
- stack.push( node.getNextSibling() );
- }
+ ast = (AST) stack.pop();
+ strategy.visit( ast );
+ if ( ast.getNextSibling() != null )
+ stack.push( ast.getNextSibling() );
+ if ( ast.getFirstChild() != null )
+ stack.push( ast.getFirstChild() );
}
}
}
+
+
}
14 years, 11 months
Hibernate SVN: r18356 - core/trunk/core/src/main/java/org/hibernate/hql/ast/util.
by hibernate-commits@lists.jboss.org
Author: stliu
Date: 2009-12-29 18:21:44 -0500 (Tue, 29 Dec 2009)
New Revision: 18356
Modified:
core/trunk/core/src/main/java/org/hibernate/hql/ast/util/NodeTraverser.java
Log:
HHH-2166 Long 'in' lists in queries results in a Java stack overflow exception.
Modified: core/trunk/core/src/main/java/org/hibernate/hql/ast/util/NodeTraverser.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/hql/ast/util/NodeTraverser.java 2009-12-29 23:20:19 UTC (rev 18355)
+++ core/trunk/core/src/main/java/org/hibernate/hql/ast/util/NodeTraverser.java 2009-12-29 23:21:44 UTC (rev 18356)
@@ -46,7 +46,7 @@
public NodeTraverser( VisitationStrategy strategy ) {
this.strategy = strategy;
}
-
+
/**
* Traverse the AST tree depth first.
*
@@ -63,20 +63,26 @@
throw new IllegalArgumentException(
"node to traverse cannot be null!" );
}
- AST node = ast.getFirstChild();
+ visitDepthFirst( ast.getFirstChild() );
+ }
+
+ private void visitDepthFirst(AST ast){
+ if(ast==null){
+ return;
+ }
Stack stack = new Stack();
- if ( node != null ) {
- stack.push( node );
+ if ( ast != null ) {
+ stack.push( ast );
while (!stack.empty()) {
- node = (AST) stack.pop();
- strategy.visit( node );
- if ( node.getFirstChild() != null ) {
- stack.push( node.getFirstChild() );
- }
- if ( node.getNextSibling() != null ) {
- stack.push( node.getNextSibling() );
- }
+ ast = (AST) stack.pop();
+ strategy.visit( ast );
+ if ( ast.getNextSibling() != null )
+ stack.push( ast.getNextSibling() );
+ if ( ast.getFirstChild() != null )
+ stack.push( ast.getFirstChild() );
}
}
}
+
+
}
14 years, 11 months