Hibernate SVN: r17684 - in core/trunk: core/src/main/java/org/hibernate/engine and 3 other directories.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2009-10-10 11:44:29 -0400 (Sat, 10 Oct 2009)
New Revision: 17684
Modified:
core/trunk/core/src/main/java/org/hibernate/SessionFactory.java
core/trunk/core/src/main/java/org/hibernate/engine/LoadQueryInfluencers.java
core/trunk/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java
core/trunk/jmx/src/main/java/org/hibernate/jmx/SessionFactoryStub.java
core/trunk/testsuite/src/test/java/org/hibernate/test/fetchprofiles/join/JoinFetchProfileTest.java
Log:
HHH-4105 Fix mispell in SessionFactory#containsFetchProfileDefition
Modified: core/trunk/core/src/main/java/org/hibernate/SessionFactory.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/SessionFactory.java 2009-10-09 21:48:41 UTC (rev 17683)
+++ core/trunk/core/src/main/java/org/hibernate/SessionFactory.java 2009-10-10 15:44:29 UTC (rev 17684)
@@ -385,5 +385,5 @@
* @param name The name to check
* @return True if there is such a fetch profile; false otherwise.
*/
- public boolean containsFetchProfileDefition(String name);
+ public boolean containsFetchProfileDefinition(String name);
}
Modified: core/trunk/core/src/main/java/org/hibernate/engine/LoadQueryInfluencers.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/engine/LoadQueryInfluencers.java 2009-10-09 21:48:41 UTC (rev 17683)
+++ core/trunk/core/src/main/java/org/hibernate/engine/LoadQueryInfluencers.java 2009-10-10 15:44:29 UTC (rev 17684)
@@ -170,7 +170,7 @@
}
private void checkFetchProfileName(String name) {
- if ( !sessionFactory.containsFetchProfileDefition( name ) ) {
+ if ( !sessionFactory.containsFetchProfileDefinition( name ) ) {
throw new UnknownProfileException( name );
}
}
Modified: core/trunk/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java 2009-10-09 21:48:41 UTC (rev 17683)
+++ core/trunk/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java 2009-10-10 15:44:29 UTC (rev 17684)
@@ -1198,7 +1198,7 @@
return def;
}
- public boolean containsFetchProfileDefition(String name) {
+ public boolean containsFetchProfileDefinition(String name) {
return fetchProfiles.containsKey( name );
}
Modified: core/trunk/jmx/src/main/java/org/hibernate/jmx/SessionFactoryStub.java
===================================================================
--- core/trunk/jmx/src/main/java/org/hibernate/jmx/SessionFactoryStub.java 2009-10-09 21:48:41 UTC (rev 17683)
+++ core/trunk/jmx/src/main/java/org/hibernate/jmx/SessionFactoryStub.java 2009-10-10 15:44:29 UTC (rev 17684)
@@ -204,7 +204,7 @@
return getImpl().getFilterDefinition( filterName );
}
- public boolean containsFetchProfileDefition(String name) {
- return getImpl().containsFetchProfileDefition( name );
+ public boolean containsFetchProfileDefinition(String name) {
+ return getImpl().containsFetchProfileDefinition( name );
}
}
Modified: core/trunk/testsuite/src/test/java/org/hibernate/test/fetchprofiles/join/JoinFetchProfileTest.java
===================================================================
--- core/trunk/testsuite/src/test/java/org/hibernate/test/fetchprofiles/join/JoinFetchProfileTest.java 2009-10-09 21:48:41 UTC (rev 17683)
+++ core/trunk/testsuite/src/test/java/org/hibernate/test/fetchprofiles/join/JoinFetchProfileTest.java 2009-10-10 15:44:29 UTC (rev 17684)
@@ -25,7 +25,6 @@
package org.hibernate.test.fetchprofiles.join;
import java.util.List;
-import java.util.Iterator;
import org.hibernate.junit.functional.FunctionalTestCase;
import org.hibernate.Session;
@@ -168,9 +167,9 @@
}
public void testBasicFetchProfileOperation() {
- assertTrue( "fetch profile not parsed properly", sfi().containsFetchProfileDefition( "enrollment.details" ) );
- assertTrue( "fetch profile not parsed properly", sfi().containsFetchProfileDefition( "offering.details" ) );
- assertTrue( "fetch profile not parsed properly", sfi().containsFetchProfileDefition( "course.details" ) );
+ assertTrue( "fetch profile not parsed properly", sfi().containsFetchProfileDefinition( "enrollment.details" ) );
+ assertTrue( "fetch profile not parsed properly", sfi().containsFetchProfileDefinition( "offering.details" ) );
+ assertTrue( "fetch profile not parsed properly", sfi().containsFetchProfileDefinition( "course.details" ) );
Session s = openSession();
SessionImplementor si = ( SessionImplementor ) s;
s.enableFetchProfile( "enrollment.details" );
14 years, 8 months
Hibernate SVN: r17683 - in sandbox/trunk/lobtest-ee5: lobtest-web/src/main/webapp and 1 other directory.
by hibernate-commits@lists.jboss.org
Author: gbadner
Date: 2009-10-09 17:48:41 -0400 (Fri, 09 Oct 2009)
New Revision: 17683
Modified:
sandbox/trunk/lobtest-ee5/lobtest-ejb/src/main/java/com/redhat/gss/lobtest/ejb/ThingServiceBean.java
sandbox/trunk/lobtest-ee5/lobtest-web/src/main/webapp/basic.jsp
Log:
added print statements to confirm proxies were returned to client and that client could call target methods
Modified: sandbox/trunk/lobtest-ee5/lobtest-ejb/src/main/java/com/redhat/gss/lobtest/ejb/ThingServiceBean.java
===================================================================
--- sandbox/trunk/lobtest-ee5/lobtest-ejb/src/main/java/com/redhat/gss/lobtest/ejb/ThingServiceBean.java 2009-10-09 19:30:36 UTC (rev 17682)
+++ sandbox/trunk/lobtest-ee5/lobtest-ejb/src/main/java/com/redhat/gss/lobtest/ejb/ThingServiceBean.java 2009-10-09 21:48:41 UTC (rev 17683)
@@ -65,7 +65,9 @@
public Thing findThingJPA(Long id)
{
- return em.getReference(Thing.class, id);
+ Thing t = em.getReference(Thing.class, id);
+ System.out.println("Thing: id=" + t.getId() + " name=" + t.getName() + " class=" + t.getClass());
+ return t;
}
public Thing setUp()
Modified: sandbox/trunk/lobtest-ee5/lobtest-web/src/main/webapp/basic.jsp
===================================================================
--- sandbox/trunk/lobtest-ee5/lobtest-web/src/main/webapp/basic.jsp 2009-10-09 19:30:36 UTC (rev 17682)
+++ sandbox/trunk/lobtest-ee5/lobtest-web/src/main/webapp/basic.jsp 2009-10-09 21:48:41 UTC (rev 17683)
@@ -1,3 +1,4 @@
+<%@page import="java.util.Iterator"%>
<%@page import="javax.naming.InitialContext"%>
<%@page import="com.redhat.gss.lobtest.ejb.ThingService"%>
<%@page import="com.redhat.gss.lobtest.jpa.Thing"%>
@@ -4,11 +5,22 @@
<%
InitialContext ctx = new InitialContext();
ThingService ts = (ThingService) ctx.lookup("lobtest/ThingServiceBean/local");
- Thing t = ts.setUp();
+ ts.setUp();
out.print("Tests set up.</br>");
- ts.findAllThingsHibernate();
- ts.findThingHibernate(t.getId());
- //ts.findThingHibernateMBean(t.getId());
+
+ Thing t = null;
+ for( Iterator<Thing> it=ts.findAllThingsHibernate().iterator(); it.hasNext(); ) {
+ t = it.next();
+ System.out.println("basic.jsp from query: Thing: id=" + t.getId() + " name=" + t.getName() + " class=" + t.getClass());
+ }
+
+ t = ts.findThingHibernate(t.getId());
+ System.out.println("basic.jsp from ts.findThingHibernate(): Thing: id=" + t.getId() + " name=" + t.getName() + " class=" + t.getClass());
+
+ t = ts.findThingJPA(t.getId());
+ System.out.println("basic.jsp from ts.findThingJPA(): Thing: id=" + t.getId() + " name=" + t.getName() + " class=" + t.getClass());
+
+ //t = ts.findThingHibernateMBean(t.getId());
+ //System.out.println("basic.jsp from ts.findThingHibernateMBean(): Thing: id=" + t.getId() + " name=" + t.getName() + " class=" + t.getClass());
%>
-
Tests run successfully.
14 years, 8 months
Hibernate SVN: r17682 - sandbox/trunk/lobtest-ee5/lobtest-ejb/src/main/java/com/redhat/gss/lobtest/ejb.
by hibernate-commits@lists.jboss.org
Author: gbadner
Date: 2009-10-09 15:30:36 -0400 (Fri, 09 Oct 2009)
New Revision: 17682
Modified:
sandbox/trunk/lobtest-ee5/lobtest-ejb/src/main/java/com/redhat/gss/lobtest/ejb/ThingService.java
sandbox/trunk/lobtest-ee5/lobtest-ejb/src/main/java/com/redhat/gss/lobtest/ejb/ThingServiceBean.java
Log:
fixed compile errors
Modified: sandbox/trunk/lobtest-ee5/lobtest-ejb/src/main/java/com/redhat/gss/lobtest/ejb/ThingService.java
===================================================================
--- sandbox/trunk/lobtest-ee5/lobtest-ejb/src/main/java/com/redhat/gss/lobtest/ejb/ThingService.java 2009-10-09 16:05:51 UTC (rev 17681)
+++ sandbox/trunk/lobtest-ee5/lobtest-ejb/src/main/java/com/redhat/gss/lobtest/ejb/ThingService.java 2009-10-09 19:30:36 UTC (rev 17682)
@@ -16,5 +16,5 @@
public Thing findThingJPA(Long id);
- public Thing findThingHibernateMBean(Long id);
+ public Thing findThingHibernateMBean(Long id) throws Exception;
}
Modified: sandbox/trunk/lobtest-ee5/lobtest-ejb/src/main/java/com/redhat/gss/lobtest/ejb/ThingServiceBean.java
===================================================================
--- sandbox/trunk/lobtest-ee5/lobtest-ejb/src/main/java/com/redhat/gss/lobtest/ejb/ThingServiceBean.java 2009-10-09 16:05:51 UTC (rev 17681)
+++ sandbox/trunk/lobtest-ee5/lobtest-ejb/src/main/java/com/redhat/gss/lobtest/ejb/ThingServiceBean.java 2009-10-09 19:30:36 UTC (rev 17682)
@@ -55,6 +55,7 @@
t = (Thing) s.load(Thing.class, id);
System.out.println("Thing: id=" + t.getId() + " name=" + t.getName() + " class=" + t.getClass());
+ }
finally
{
s.close();
14 years, 8 months
Hibernate SVN: r17680 - in core/trunk/annotations/src: main/java/org/hibernate/cfg and 2 other directories.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2009-10-09 11:58:31 -0400 (Fri, 09 Oct 2009)
New Revision: 17680
Added:
core/trunk/annotations/src/main/java/org/hibernate/annotations/JoinColumnOrFormula.java
core/trunk/annotations/src/main/java/org/hibernate/annotations/JoinColumnsOrFormulas.java
core/trunk/annotations/src/main/java/org/hibernate/annotations/JoinFormula.java
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/Company.java
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/FoodItem.java
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/Language.java
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/ManyToOneWithFormulaTest.java
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/Menu.java
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/Message.java
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/Person.java
Modified:
core/trunk/annotations/src/main/java/org/hibernate/cfg/AnnotationBinder.java
core/trunk/annotations/src/main/java/org/hibernate/cfg/Ejb3Column.java
core/trunk/annotations/src/main/java/org/hibernate/cfg/Ejb3JoinColumn.java
Log:
HHH-4382 HHH-4479 support formula as join columns with annotations (needs doc still( (Sharath Reddy)
Added: core/trunk/annotations/src/main/java/org/hibernate/annotations/JoinColumnOrFormula.java
===================================================================
--- core/trunk/annotations/src/main/java/org/hibernate/annotations/JoinColumnOrFormula.java (rev 0)
+++ core/trunk/annotations/src/main/java/org/hibernate/annotations/JoinColumnOrFormula.java 2009-10-09 15:58:31 UTC (rev 17680)
@@ -0,0 +1,48 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2009, Red Hat, Inc. and/or its affiliates or third-
+ * party contributors as indicated by the @author tags or express
+ * copyright attribution statements applied by the authors.
+ * All third-party contributions are distributed under license by
+ * Red Hat, Inc.
+ *
+ * This copyrighted material is made available to anyone wishing to
+ * use, modify, copy, or redistribute it subject to the terms and
+ * conditions of the GNU Lesser General Public License, as published
+ * by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this distribution; if not, write to:
+ *
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA 02110-1301 USA
+ */
+
+
+package org.hibernate.annotations;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import javax.persistence.JoinColumn;
+
+/**
+ * @author Sharath Reddy
+ */
+@Target({METHOD, FIELD})
+@Retention(RUNTIME)
+public @interface JoinColumnOrFormula {
+ JoinFormula formula() default @JoinFormula(value="", referencedColumnName="");
+ JoinColumn column() default @JoinColumn();
+}
Added: core/trunk/annotations/src/main/java/org/hibernate/annotations/JoinColumnsOrFormulas.java
===================================================================
--- core/trunk/annotations/src/main/java/org/hibernate/annotations/JoinColumnsOrFormulas.java (rev 0)
+++ core/trunk/annotations/src/main/java/org/hibernate/annotations/JoinColumnsOrFormulas.java 2009-10-09 15:58:31 UTC (rev 17680)
@@ -0,0 +1,43 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2009, Red Hat, Inc. and/or its affiliates or third-
+ * party contributors as indicated by the @author tags or express
+ * copyright attribution statements applied by the authors.
+ * All third-party contributions are distributed under license by
+ * Red Hat, Inc.
+ *
+ * This copyrighted material is made available to anyone wishing to
+ * use, modify, copy, or redistribute it subject to the terms and
+ * conditions of the GNU Lesser General Public License, as published
+ * by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this distribution; if not, write to:
+ *
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA 02110-1301 USA
+ */
+
+package org.hibernate.annotations;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ * @author Sharath Reddy
+ */
+@Target({METHOD, FIELD})
+@Retention(RUNTIME)
+public @interface JoinColumnsOrFormulas {
+ JoinColumnOrFormula [] value();
+}
Added: core/trunk/annotations/src/main/java/org/hibernate/annotations/JoinFormula.java
===================================================================
--- core/trunk/annotations/src/main/java/org/hibernate/annotations/JoinFormula.java (rev 0)
+++ core/trunk/annotations/src/main/java/org/hibernate/annotations/JoinFormula.java 2009-10-09 15:58:31 UTC (rev 17680)
@@ -0,0 +1,47 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2009, Red Hat, Inc. and/or its affiliates or third-
+ * party contributors as indicated by the @author tags or express
+ * copyright attribution statements applied by the authors.
+ * All third-party contributions are distributed under license by
+ * Red Hat, Inc.
+ *
+ * This copyrighted material is made available to anyone wishing to
+ * use, modify, copy, or redistribute it subject to the terms and
+ * conditions of the GNU Lesser General Public License, as published
+ * by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this distribution; if not, write to:
+ *
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA 02110-1301 USA
+ */
+
+package org.hibernate.annotations;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import java.lang.annotation.Retention;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+import java.lang.annotation.Target;
+
+/**
+ * JoinFormula. To be used as a replacement for @JoinColumn in most places
+ * The formula has to be a valid SQL fragment
+ *
+ * @author Sharath Reddy
+ */
+@Target({METHOD, FIELD})
+@Retention(RUNTIME)
+public @interface JoinFormula {
+ String value();
+ String referencedColumnName() default "";
+}
Modified: core/trunk/annotations/src/main/java/org/hibernate/cfg/AnnotationBinder.java
===================================================================
--- core/trunk/annotations/src/main/java/org/hibernate/cfg/AnnotationBinder.java 2009-10-09 14:39:29 UTC (rev 17679)
+++ core/trunk/annotations/src/main/java/org/hibernate/cfg/AnnotationBinder.java 2009-10-09 15:58:31 UTC (rev 17680)
@@ -101,6 +101,7 @@
import org.hibernate.annotations.Formula;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Index;
+import org.hibernate.annotations.JoinColumnsOrFormulas;
import org.hibernate.annotations.LazyToOne;
import org.hibernate.annotations.LazyToOneOption;
import org.hibernate.annotations.ManyToAny;
@@ -1219,6 +1220,13 @@
propertyHolder, inferredData.getPropertyName(), mappings
);
}
+ else if ( property.isAnnotationPresent( JoinColumnsOrFormulas.class ) ) {
+ JoinColumnsOrFormulas ann = property.getAnnotation( JoinColumnsOrFormulas.class );
+ joinColumns = Ejb3JoinColumn.buildJoinColumnsOrFormulas(
+ ann, null, entityBinder.getSecondaryTables(),
+ propertyHolder, inferredData.getPropertyName(), mappings
+ );
+ }
}
if ( property.isAnnotationPresent( Column.class ) || property.isAnnotationPresent( Formula.class ) ) {
Column ann = property.getAnnotation( Column.class );
Modified: core/trunk/annotations/src/main/java/org/hibernate/cfg/Ejb3Column.java
===================================================================
--- core/trunk/annotations/src/main/java/org/hibernate/cfg/Ejb3Column.java 2009-10-09 14:39:29 UTC (rev 17679)
+++ core/trunk/annotations/src/main/java/org/hibernate/cfg/Ejb3Column.java 2009-10-09 15:58:31 UTC (rev 17680)
@@ -95,6 +95,10 @@
return unique;
}
+ public boolean isFormula() {
+ return StringHelper.isNotEmpty(formulaString) ? true : false;
+ }
+
public String getFormulaString() {
return formulaString;
}
@@ -188,16 +192,22 @@
String columnName, String propertyName, int length, int precision, int scale, boolean nullable,
String sqlType, boolean unique, boolean applyNamingStrategy
) {
- this.mappingColumn = new Column();
- redefineColumnName( columnName, propertyName, applyNamingStrategy );
- this.mappingColumn.setLength( length );
- if ( precision > 0 ) { //revelent precision
- this.mappingColumn.setPrecision( precision );
- this.mappingColumn.setScale( scale );
+ if ( StringHelper.isNotEmpty( formulaString ) ) {
+ this.formula = new Formula();
+ this.formula.setFormula( formulaString );
}
- this.mappingColumn.setNullable( nullable );
- this.mappingColumn.setSqlType( sqlType );
- this.mappingColumn.setUnique( unique );
+ else {
+ this.mappingColumn = new Column();
+ redefineColumnName( columnName, propertyName, applyNamingStrategy );
+ this.mappingColumn.setLength( length );
+ if ( precision > 0 ) { //revelent precision
+ this.mappingColumn.setPrecision( precision );
+ this.mappingColumn.setScale( scale );
+ }
+ this.mappingColumn.setNullable( nullable );
+ this.mappingColumn.setSqlType( sqlType );
+ this.mappingColumn.setUnique( unique );
+ }
}
public boolean isNameDeferred() {
@@ -462,8 +472,14 @@
public static void checkPropertyConsistency(Ejb3Column[] columns, String propertyName) {
int nbrOfColumns = columns.length;
+
if ( nbrOfColumns > 1 ) {
for (int currentIndex = 1; currentIndex < nbrOfColumns; currentIndex++) {
+
+ if (columns[currentIndex].isFormula() || columns[currentIndex - 1].isFormula()) {
+ continue;
+ }
+
if ( columns[currentIndex].isInsertable() != columns[currentIndex - 1].isInsertable() ) {
throw new AnnotationException(
"Mixing insertable and non insertable columns in a property is not allowed: " + propertyName
@@ -486,6 +502,7 @@
}
}
}
+
}
public void addIndex(Index index, boolean inSecondPass) {
@@ -517,4 +534,4 @@
);
}
}
-}
\ No newline at end of file
+}
Modified: core/trunk/annotations/src/main/java/org/hibernate/cfg/Ejb3JoinColumn.java
===================================================================
--- core/trunk/annotations/src/main/java/org/hibernate/cfg/Ejb3JoinColumn.java 2009-10-09 14:39:29 UTC (rev 17679)
+++ core/trunk/annotations/src/main/java/org/hibernate/cfg/Ejb3JoinColumn.java 2009-10-09 15:58:31 UTC (rev 17680)
@@ -33,6 +33,9 @@
import org.hibernate.AnnotationException;
import org.hibernate.MappingException;
import org.hibernate.util.StringHelper;
+import org.hibernate.annotations.JoinColumnOrFormula;
+import org.hibernate.annotations.JoinColumnsOrFormulas;
+import org.hibernate.annotations.JoinFormula;
import org.hibernate.mapping.Column;
import org.hibernate.mapping.Join;
import org.hibernate.mapping.PersistentClass;
@@ -127,6 +130,55 @@
return referencedColumn;
}
+
+ public static Ejb3JoinColumn[] buildJoinColumnsOrFormulas(
+ JoinColumnsOrFormulas anns,
+ String mappedBy, Map<String, Join> joins,
+ PropertyHolder propertyHolder,
+ String propertyName,
+ ExtendedMappings mappings
+ ) {
+
+ JoinColumnOrFormula [] ann = anns.value();
+ Ejb3JoinColumn [] joinColumns = new Ejb3JoinColumn[ann.length];
+ for (int i = 0; i < ann.length; i++) {
+ JoinColumnOrFormula join = (JoinColumnOrFormula) ann[i];
+ JoinFormula formula = join.formula();
+ if (formula.value() != null && !formula.value().equals("")) {
+ joinColumns[i] = buildJoinFormula(formula, mappedBy, joins, propertyHolder, propertyName, mappings);
+ }
+ else {
+ joinColumns[i] = buildJoinColumns(new JoinColumn[] { join.column() }, mappedBy, joins, propertyHolder, propertyName, mappings)[0];
+ }
+ }
+
+ return joinColumns;
+ }
+
+ /**
+ * build join formula
+ */
+ private static Ejb3JoinColumn buildJoinFormula(
+ JoinFormula ann,
+ String mappedBy, Map<String, Join> joins,
+ PropertyHolder propertyHolder,
+ String propertyName,
+ ExtendedMappings mappings
+ ) {
+
+ Ejb3JoinColumn formulaColumn = new Ejb3JoinColumn();
+ formulaColumn.setFormula( ann.value() );
+ formulaColumn.setReferencedColumn(ann.referencedColumnName());
+ formulaColumn.setMappings( mappings );
+ formulaColumn.setPropertyHolder( propertyHolder );
+ formulaColumn.setJoins( joins );
+ formulaColumn.setPropertyName( BinderHelper.getRelativePath( propertyHolder, propertyName ) );
+
+ formulaColumn.bind();
+ return formulaColumn;
+ }
+
+
public static Ejb3JoinColumn[] buildJoinColumns(
JoinColumn[] anns,
String mappedBy, Map<String, Join> joins,
@@ -382,9 +434,10 @@
null, referencedColumn.getLength(),
referencedColumn.getPrecision(),
referencedColumn.getScale(),
- getMappingColumn().isNullable(),
+ getMappingColumn() != null ? getMappingColumn().isNullable() : false,
referencedColumn.getSqlType(),
- getMappingColumn().isUnique(), false
+ getMappingColumn() != null ? getMappingColumn().isUnique() : false,
+ false
);
linkWithValue( value );
}
@@ -582,4 +635,4 @@
this.mappedByTableName = logicalTableName;
this.mappedByPropertyName = mappedByProperty;
}
-}
\ No newline at end of file
+}
Added: core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/Company.java
===================================================================
--- core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/Company.java (rev 0)
+++ core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/Company.java 2009-10-09 15:58:31 UTC (rev 17680)
@@ -0,0 +1,71 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2009, Red Hat, Inc. and/or its affiliates or third-
+ * party contributors as indicated by the @author tags or express
+ * copyright attribution statements applied by the authors.
+ * All third-party contributions are distributed under license by
+ * Red Hat, Inc.
+ *
+ * This copyrighted material is made available to anyone wishing to
+ * use, modify, copy, or redistribute it subject to the terms and
+ * conditions of the GNU Lesser General Public License, as published
+ * by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this distribution; if not, write to:
+ *
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA 02110-1301 USA
+ */
+
+package org.hibernate.test.annotations.manytoonewithformula;
+
+import java.io.Serializable;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.JoinColumn;
+import javax.persistence.ManyToOne;
+import org.hibernate.annotations.JoinColumnOrFormula;
+import org.hibernate.annotations.JoinColumnsOrFormulas;
+import org.hibernate.annotations.JoinFormula;
+
+/**
+ * @author Sharath Reddy
+ */
+@Entity
+public class Company implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ private int id;
+ private Person person;
+
+ @Id @GeneratedValue
+ public int getId() {
+ return id;
+ }
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ @ManyToOne
+ @JoinColumnsOrFormulas(
+ {
+ @JoinColumnOrFormula(column=@JoinColumn(name="id", referencedColumnName="company_id", updatable=false, insertable=false)),
+ @JoinColumnOrFormula(formula=@JoinFormula(value="'T'", referencedColumnName="is_default"))
+ })
+ public Person getDefaultContactPerson() {
+ return person;
+ }
+ public void setDefaultContactPerson(Person person) {
+ this.person = person;
+ }
+
+}
Added: core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/FoodItem.java
===================================================================
--- core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/FoodItem.java (rev 0)
+++ core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/FoodItem.java 2009-10-09 15:58:31 UTC (rev 17680)
@@ -0,0 +1,79 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2009, Red Hat, Inc. and/or its affiliates or third-
+ * party contributors as indicated by the @author tags or express
+ * copyright attribution statements applied by the authors.
+ * All third-party contributions are distributed under license by
+ * Red Hat, Inc.
+ *
+ * This copyrighted material is made available to anyone wishing to
+ * use, modify, copy, or redistribute it subject to the terms and
+ * conditions of the GNU Lesser General Public License, as published
+ * by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this distribution; if not, write to:
+ *
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA 02110-1301 USA
+ */
+
+package org.hibernate.test.annotations.manytoonewithformula;
+
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import javax.persistence.GeneratedValue;
+import javax.persistence.ManyToOne;
+import javax.persistence.JoinColumn;
+
+import org.hibernate.annotations.JoinColumnOrFormula;
+import org.hibernate.annotations.JoinColumnsOrFormulas;
+import org.hibernate.annotations.JoinFormula;
+
+/**
+ * @author Sharath Reddy
+ */
+@Entity
+public class FoodItem {
+ private Integer id;
+ private String item;
+ private Menu order;
+
+ @Id @GeneratedValue
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getItem() {
+ return item;
+ }
+
+ public void setItem(String item) {
+ this.item = item;
+ }
+
+ @ManyToOne
+ @JoinColumnsOrFormulas(
+ {
+ @JoinColumnOrFormula(column=@JoinColumn(name="order_nbr", referencedColumnName="order_nbr")),
+ @JoinColumnOrFormula(formula=@JoinFormula(value="'F'", referencedColumnName="is_default"))
+ })
+ public Menu getOrder() {
+ return order;
+ }
+
+ public void setOrder(Menu order) {
+ this.order = order;
+ }
+}
Added: core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/Language.java
===================================================================
--- core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/Language.java (rev 0)
+++ core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/Language.java 2009-10-09 15:58:31 UTC (rev 17680)
@@ -0,0 +1,64 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2009, Red Hat, Inc. and/or its affiliates or third-
+ * party contributors as indicated by the @author tags or express
+ * copyright attribution statements applied by the authors.
+ * All third-party contributions are distributed under license by
+ * Red Hat, Inc.
+ *
+ * This copyrighted material is made available to anyone wishing to
+ * use, modify, copy, or redistribute it subject to the terms and
+ * conditions of the GNU Lesser General Public License, as published
+ * by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this distribution; if not, write to:
+ *
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA 02110-1301 USA
+ */
+
+package org.hibernate.test.annotations.manytoonewithformula;
+
+import java.io.Serializable;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.Id;
+
+/**
+ * @author Sharath Reddy
+ */
+@Entity
+public class Language implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ private String name;
+ private String code;
+
+ @Id
+ @Column(name="code")
+ public String getCode() {
+ return code;
+ }
+ public void setCode(String code) {
+ this.code = code;
+ }
+
+ @Column(name="name")
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+
+}
Added: core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/ManyToOneWithFormulaTest.java
===================================================================
--- core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/ManyToOneWithFormulaTest.java (rev 0)
+++ core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/ManyToOneWithFormulaTest.java 2009-10-09 15:58:31 UTC (rev 17680)
@@ -0,0 +1,124 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2009, Red Hat, Inc. and/or its affiliates or third-
+ * party contributors as indicated by the @author tags or express
+ * copyright attribution statements applied by the authors.
+ * All third-party contributions are distributed under license by
+ * Red Hat, Inc.
+ *
+ * This copyrighted material is made available to anyone wishing to
+ * use, modify, copy, or redistribute it subject to the terms and
+ * conditions of the GNU Lesser General Public License, as published
+ * by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this distribution; if not, write to:
+ *
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA 02110-1301 USA
+ */
+
+package org.hibernate.test.annotations.manytoonewithformula;
+
+import org.hibernate.Session;
+import org.hibernate.Transaction;
+import org.hibernate.test.annotations.TestCase;
+
+/**
+ * @author Sharath Reddy
+ */
+public class ManyToOneWithFormulaTest extends TestCase {
+
+ public ManyToOneWithFormulaTest(String x) {
+ super( x );
+ }
+
+ public void testManyToOneFromNonPk() throws Exception {
+ Session s = openSession();
+ Transaction tx = s.beginTransaction();
+ Menu menu = new Menu();
+ menu.setOrderNbr( "123" );
+ menu.setDefault("F");
+ s.persist( menu );
+ FoodItem foodItem = new FoodItem();
+ foodItem.setItem( "Mouse" );
+ foodItem.setOrder( menu );
+ s.persist( foodItem );
+ s.flush();
+ s.clear();
+ foodItem = (FoodItem) s.get( FoodItem.class, foodItem.getId() );
+ assertNotNull( foodItem.getOrder() );
+ assertEquals( "123", foodItem.getOrder().getOrderNbr() );
+ tx.rollback();
+ s.close();
+ }
+
+
+ public void testManyToOneFromPk() throws Exception {
+ Session s = openSession();
+ Transaction tx = s.beginTransaction();
+
+ Company company = new Company();
+ s.persist( company );
+
+ Person person = new Person();
+ person.setDefaultFlag("T");
+ person.setCompanyId(company.getId());
+ s.persist(person);
+
+ s.flush();
+ s.clear();
+
+ company = (Company) s.get( Company.class, company.getId() );
+ assertNotNull( company.getDefaultContactPerson() );
+ assertEquals( person.getId(), company.getDefaultContactPerson().getId() );
+ tx.rollback();
+ s.close();
+ }
+
+ public void testManyToOneToPkWithOnlyFormula() throws Exception {
+ Session s = openSession();
+ Transaction tx = s.beginTransaction();
+
+ Language language = new Language();
+ language.setCode("EN");
+ language.setName("English");
+ s.persist( language );
+
+ Message msg = new Message();
+ msg.setLanguageCode("en");
+ msg.setLanguageName("English");
+ s.persist(msg);
+
+ s.flush();
+ s.clear();
+
+ msg = (Message) s.get( Message.class, msg.getId() );
+ assertNotNull( msg.getLanguage());
+ assertEquals( "EN", msg.getLanguage().getCode() );
+ tx.rollback();
+ s.close();
+ }
+
+ /**
+ * @see org.hibernate.test.annotations.TestCase#getMappings()
+ */
+ protected java.lang.Class<?>[] getMappings() {
+ return new java.lang.Class[]{
+ Menu.class,
+ FoodItem.class,
+ Company.class,
+ Person.class,
+ Message.class,
+ Language.class
+ };
+ }
+
+}
Added: core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/Menu.java
===================================================================
--- core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/Menu.java (rev 0)
+++ core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/Menu.java 2009-10-09 15:58:31 UTC (rev 17680)
@@ -0,0 +1,76 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2009, Red Hat, Inc. and/or its affiliates or third-
+ * party contributors as indicated by the @author tags or express
+ * copyright attribution statements applied by the authors.
+ * All third-party contributions are distributed under license by
+ * Red Hat, Inc.
+ *
+ * This copyrighted material is made available to anyone wishing to
+ * use, modify, copy, or redistribute it subject to the terms and
+ * conditions of the GNU Lesser General Public License, as published
+ * by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this distribution; if not, write to:
+ *
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA 02110-1301 USA
+ */
+
+package org.hibernate.test.annotations.manytoonewithformula;
+
+import java.io.Serializable;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.Column;
+
+/**
+ * @author Sharath Reddy
+ */
+@Entity
+public class Menu implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ private Integer id;
+ private String orderNbr;
+ private String isDefault;
+
+ @Id
+ @GeneratedValue
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ @Column(name="is_default")
+ public String isDefault() {
+ return isDefault;
+ }
+
+ public void setDefault(String isDefault) {
+ this.isDefault = isDefault;
+ }
+
+ @Column(name="order_nbr")
+ public String getOrderNbr() {
+ return orderNbr;
+ }
+
+ public void setOrderNbr(String orderNbr) {
+ this.orderNbr = orderNbr;
+ }
+
+
+}
Added: core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/Message.java
===================================================================
--- core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/Message.java (rev 0)
+++ core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/Message.java 2009-10-09 15:58:31 UTC (rev 17680)
@@ -0,0 +1,94 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2009, Red Hat, Inc. and/or its affiliates or third-
+ * party contributors as indicated by the @author tags or express
+ * copyright attribution statements applied by the authors.
+ * All third-party contributions are distributed under license by
+ * Red Hat, Inc.
+ *
+ * This copyrighted material is made available to anyone wishing to
+ * use, modify, copy, or redistribute it subject to the terms and
+ * conditions of the GNU Lesser General Public License, as published
+ * by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this distribution; if not, write to:
+ *
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA 02110-1301 USA
+ */
+
+
+package org.hibernate.test.annotations.manytoonewithformula;
+
+import java.io.Serializable;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.ManyToOne;
+import org.hibernate.annotations.JoinColumnOrFormula;
+import org.hibernate.annotations.JoinColumnsOrFormulas;
+import org.hibernate.annotations.JoinFormula;
+
+/**
+ * @author Sharath Reddy
+ */
+@Entity
+public class Message implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ private int id;
+ private String languageCode;
+ private String languageName;
+ private Language language;
+
+ @Id @GeneratedValue
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ @Column(name="lang_code")
+ public String getLanguageCode() {
+ return languageCode;
+ }
+
+ public void setLanguageCode(String val) {
+ this.languageCode = val;
+ }
+
+ @Column(name="lang_name")
+ public String getLanguageName() {
+ return languageName;
+ }
+
+ public void setLanguageName(String val) {
+ this.languageName = val;
+ }
+
+ @ManyToOne
+ @JoinColumnsOrFormulas(
+ {
+ @JoinColumnOrFormula(formula=@JoinFormula(value="UPPER(lang_code)"))
+ //@JoinColumnOrFormula(formula=@JoinFormula(value="(select l.code from Language l where l.name = lang_name)"))
+ })
+ public Language getLanguage() {
+ return language;
+ }
+ public void setLanguage(Language language) {
+ this.language = language;
+ }
+
+}
Added: core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/Person.java
===================================================================
--- core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/Person.java (rev 0)
+++ core/trunk/annotations/src/test/java/org/hibernate/test/annotations/manytoonewithformula/Person.java 2009-10-09 15:58:31 UTC (rev 17680)
@@ -0,0 +1,68 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
+ * indicated by the @author tags or express copyright attribution
+ * statements applied by the authors. All third-party contributions are
+ * distributed under license by Red Hat Middleware LLC.
+ *
+ * This copyrighted material is made available to anyone wishing to use, modify,
+ * copy, or redistribute it subject to the terms and conditions of the GNU
+ * Lesser General Public License, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this distribution; if not, write to:
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA 02110-1301 USA
+ */
+
+package org.hibernate.test.annotations.manytoonewithformula;
+
+import java.io.Serializable;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+
+/**
+ * @author Sharath Reddy
+ */
+@Entity
+public class Person implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ private int id;
+ private int companyId;
+ private String defaultFlag;
+
+ @Id @GeneratedValue
+ public int getId() {
+ return id;
+ }
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ @Column(name="company_id")
+ public int getCompanyId() {
+ return companyId;
+ }
+ public void setCompanyId(int companyId) {
+ this.companyId = companyId;
+ }
+ @Column(name="is_default")
+ public String isDefaultFlag() {
+ return defaultFlag;
+ }
+ public void setDefaultFlag(String defaultFlag) {
+ this.defaultFlag = defaultFlag;
+ }
+}
+
14 years, 8 months
Hibernate SVN: r17678 - in beanvalidation/tck/trunk/src/main: docbook/en-US and 1 other directory.
by hibernate-commits@lists.jboss.org
Author: hardy.ferentschik
Date: 2009-10-09 08:55:40 -0400 (Fri, 09 Oct 2009)
New Revision: 17678
Modified:
beanvalidation/tck/trunk/src/main/assembly/assembly.xml
beanvalidation/tck/trunk/src/main/docbook/en-US/Book_Info.xml
beanvalidation/tck/trunk/src/main/docbook/en-US/appeals-process.xml
beanvalidation/tck/trunk/src/main/docbook/en-US/installation.xml
Log:
fixed links to new BVTCK jira project
Modified: beanvalidation/tck/trunk/src/main/assembly/assembly.xml
===================================================================
--- beanvalidation/tck/trunk/src/main/assembly/assembly.xml 2009-10-09 12:55:26 UTC (rev 17677)
+++ beanvalidation/tck/trunk/src/main/assembly/assembly.xml 2009-10-09 12:55:40 UTC (rev 17678)
@@ -33,7 +33,7 @@
</fileSet>
<fileSet>
<directory>${project.basedir}</directory>
- <outputDirectory>src</outputDirectory>
+ <outputDirectory>.</outputDirectory>
<includes>
<include>**/pom.xml</include>
<include>**/src/**</include>
@@ -41,6 +41,7 @@
<excludes>
<exclude>**/src/main/assembly/**</exclude>
<exclude>**/bin/**</exclude>
+ <exclude>**/target/**</exclude>
</excludes>
<useDefaultExcludes/>
</fileSet>
Modified: beanvalidation/tck/trunk/src/main/docbook/en-US/Book_Info.xml
===================================================================
--- beanvalidation/tck/trunk/src/main/docbook/en-US/Book_Info.xml 2009-10-09 12:55:26 UTC (rev 17677)
+++ beanvalidation/tck/trunk/src/main/docbook/en-US/Book_Info.xml 2009-10-09 12:55:40 UTC (rev 17678)
@@ -25,10 +25,8 @@
<authorgroup>
<author>
- <firstname>Emmanuel</firstname>
+ <firstname>Emmanuel Bernard</firstname>
- <surname>Bernard</surname>
-
<affiliation>
<jobtitle>JSR-303: Bean Validation specification lead</jobtitle>
@@ -37,10 +35,8 @@
</author>
<author>
- <firstname>Hardy</firstname>
+ <firstname>Hardy Ferentschik</firstname>
- <surname>Ferentschik</surname>
-
<affiliation>
<jobtitle>Bean Validation TCK Developer</jobtitle>
Modified: beanvalidation/tck/trunk/src/main/docbook/en-US/appeals-process.xml
===================================================================
--- beanvalidation/tck/trunk/src/main/docbook/en-US/appeals-process.xml 2009-10-09 12:55:26 UTC (rev 17677)
+++ beanvalidation/tck/trunk/src/main/docbook/en-US/appeals-process.xml 2009-10-09 12:55:40 UTC (rev 17678)
@@ -52,15 +52,15 @@
<title>How these challenges are submitted?</title>
<para>To submit a challenge, a new issue should be created in the <ulink
- url="https://jira.jboss.org/jira/browse/HV">HV project</ulink> of the
- JBoss JIRA using the Issue Type: Bug. The appellant should complete the
- Summary, Component (TCK Appeal), Environment and Description Field only.
- Any communication regarding the issue should be pursed in the comments of
- the filed issue for accurate record.</para>
+ url="http://opensource.atlassian.com/projects/hibernate/browse/BVTCK">BVTCK
+ project</ulink> of the Hibernate JIRA using the Issue Type: Bug. The
+ appellant should complete the Summary, Component (TCK Appeal), Environment
+ and Description Field only. Any communication regarding the issue should
+ be pursed in the comments of the filed issue for accurate record.</para>
- <para>To submit an issue in the JBoss JIRA, you must have a (free)
- JBoss.com member account. You can create a member account using the <ulink
- url="http://www.jboss.org/index.html?op=checkage&module=user">on-line
+ <para>To submit an issue in the Hibernate JIRA, you must have a (free)
+ Jira member account. You can create a member account using the <ulink
+ url="http://opensource.atlassian.com/projects/hibernate/secure/Signup!default....">on-line
registration</ulink>.</para>
<para>If you wish to make a private challenge, you should follow the above
@@ -75,12 +75,12 @@
Validation TCK Project Lead, as designated by Specification Lead, Red Hat
Middleware LLC. or his/her designate. The appellant can also monitor the
process by following the issue report filed in the <ulink
- url="https://jira.jboss.org/jira/browse/HV">HV project</ulink> of the
- JBoss JIRA.</para>
+ url="http://opensource.atlassian.com/projects/hibernate/browse/BVTCK">BVTCK
+ project</ulink> of the Hibernate JIRA.</para>
<para>The current TCK Project Lead is listed on the <ulink type=""
- url="https://jira.jboss.org/jira/browse/HV" userlevel="">HV Project
- Summary Page</ulink> on the JBoss JIRA.</para>
+ url="http://opensource.atlassian.com/projects/hibernate/browse/BVTCK"
+ userlevel="">BVTCK Project Summary Page</ulink>.</para>
</section>
<section>
Modified: beanvalidation/tck/trunk/src/main/docbook/en-US/installation.xml
===================================================================
--- beanvalidation/tck/trunk/src/main/docbook/en-US/installation.xml 2009-10-09 12:55:26 UTC (rev 17677)
+++ beanvalidation/tck/trunk/src/main/docbook/en-US/installation.xml 2009-10-09 12:55:40 UTC (rev 17678)
@@ -71,7 +71,7 @@
source into a subfolder ri. This will allow you to run the TCK against
Hibernate Validator.</para>
- <programlisting>svn co http://anonsvn.jboss.org/repos/hibernate/validator/tags/v_4_0_0_GA ri</programlisting>
+ <programlisting>svn co http://anonsvn.jboss.org/repos/hibernate/validator/tags/v4_0_0_GA ri</programlisting>
<para>If you have downloaded the Hibernate Validator distribution, extract
it into a sibling folder named hibernate-validator. The resulting folder
@@ -84,7 +84,7 @@
<para>Each test class is treated as an individual artifact (hence the
<literal>@Artifact(artifactType = ArtifactType.JSR303)</literal>
annotation on the class). All test methods (i.e., methods annotated with
- <literal>@Test</literal>) in the test class are run. </para>
+ <literal>@Test</literal>) in the test class are run.</para>
<note>
<para>Using <literal>ArtifactType.JSR303</literal> is an additional
14 years, 8 months
Hibernate SVN: r17677 - in beanvalidation/tck/tags/v1_0_0_GA/src/main: docbook/en-US and 1 other directory.
by hibernate-commits@lists.jboss.org
Author: hardy.ferentschik
Date: 2009-10-09 08:55:26 -0400 (Fri, 09 Oct 2009)
New Revision: 17677
Modified:
beanvalidation/tck/tags/v1_0_0_GA/src/main/assembly/assembly.xml
beanvalidation/tck/tags/v1_0_0_GA/src/main/docbook/en-US/Book_Info.xml
beanvalidation/tck/tags/v1_0_0_GA/src/main/docbook/en-US/appeals-process.xml
beanvalidation/tck/tags/v1_0_0_GA/src/main/docbook/en-US/installation.xml
Log:
fixed links to new BVTCK jira project
Modified: beanvalidation/tck/tags/v1_0_0_GA/src/main/assembly/assembly.xml
===================================================================
--- beanvalidation/tck/tags/v1_0_0_GA/src/main/assembly/assembly.xml 2009-10-09 07:25:09 UTC (rev 17676)
+++ beanvalidation/tck/tags/v1_0_0_GA/src/main/assembly/assembly.xml 2009-10-09 12:55:26 UTC (rev 17677)
@@ -33,7 +33,7 @@
</fileSet>
<fileSet>
<directory>${project.basedir}</directory>
- <outputDirectory>src</outputDirectory>
+ <outputDirectory>.</outputDirectory>
<includes>
<include>**/pom.xml</include>
<include>**/src/**</include>
@@ -41,6 +41,7 @@
<excludes>
<exclude>**/src/main/assembly/**</exclude>
<exclude>**/bin/**</exclude>
+ <exclude>**/target/**</exclude>
</excludes>
<useDefaultExcludes/>
</fileSet>
Modified: beanvalidation/tck/tags/v1_0_0_GA/src/main/docbook/en-US/Book_Info.xml
===================================================================
--- beanvalidation/tck/tags/v1_0_0_GA/src/main/docbook/en-US/Book_Info.xml 2009-10-09 07:25:09 UTC (rev 17676)
+++ beanvalidation/tck/tags/v1_0_0_GA/src/main/docbook/en-US/Book_Info.xml 2009-10-09 12:55:26 UTC (rev 17677)
@@ -25,10 +25,8 @@
<authorgroup>
<author>
- <firstname>Emmanuel</firstname>
+ <firstname>Emmanuel Bernard</firstname>
- <surname>Bernard</surname>
-
<affiliation>
<jobtitle>JSR-303: Bean Validation specification lead</jobtitle>
@@ -37,10 +35,8 @@
</author>
<author>
- <firstname>Hardy</firstname>
+ <firstname>Hardy Ferentschik</firstname>
- <surname>Ferentschik</surname>
-
<affiliation>
<jobtitle>Bean Validation TCK Developer</jobtitle>
Modified: beanvalidation/tck/tags/v1_0_0_GA/src/main/docbook/en-US/appeals-process.xml
===================================================================
--- beanvalidation/tck/tags/v1_0_0_GA/src/main/docbook/en-US/appeals-process.xml 2009-10-09 07:25:09 UTC (rev 17676)
+++ beanvalidation/tck/tags/v1_0_0_GA/src/main/docbook/en-US/appeals-process.xml 2009-10-09 12:55:26 UTC (rev 17677)
@@ -52,15 +52,15 @@
<title>How these challenges are submitted?</title>
<para>To submit a challenge, a new issue should be created in the <ulink
- url="https://jira.jboss.org/jira/browse/HV">HV project</ulink> of the
- JBoss JIRA using the Issue Type: Bug. The appellant should complete the
- Summary, Component (TCK Appeal), Environment and Description Field only.
- Any communication regarding the issue should be pursed in the comments of
- the filed issue for accurate record.</para>
+ url="http://opensource.atlassian.com/projects/hibernate/browse/BVTCK">BVTCK
+ project</ulink> of the Hibernate JIRA using the Issue Type: Bug. The
+ appellant should complete the Summary, Component (TCK Appeal), Environment
+ and Description Field only. Any communication regarding the issue should
+ be pursed in the comments of the filed issue for accurate record.</para>
- <para>To submit an issue in the JBoss JIRA, you must have a (free)
- JBoss.com member account. You can create a member account using the <ulink
- url="http://www.jboss.org/index.html?op=checkage&module=user">on-line
+ <para>To submit an issue in the Hibernate JIRA, you must have a (free)
+ Jira member account. You can create a member account using the <ulink
+ url="http://opensource.atlassian.com/projects/hibernate/secure/Signup!default....">on-line
registration</ulink>.</para>
<para>If you wish to make a private challenge, you should follow the above
@@ -75,12 +75,12 @@
Validation TCK Project Lead, as designated by Specification Lead, Red Hat
Middleware LLC. or his/her designate. The appellant can also monitor the
process by following the issue report filed in the <ulink
- url="https://jira.jboss.org/jira/browse/HV">HV project</ulink> of the
- JBoss JIRA.</para>
+ url="http://opensource.atlassian.com/projects/hibernate/browse/BVTCK">BVTCK
+ project</ulink> of the Hibernate JIRA.</para>
<para>The current TCK Project Lead is listed on the <ulink type=""
- url="https://jira.jboss.org/jira/browse/HV" userlevel="">HV Project
- Summary Page</ulink> on the JBoss JIRA.</para>
+ url="http://opensource.atlassian.com/projects/hibernate/browse/BVTCK"
+ userlevel="">BVTCK Project Summary Page</ulink>.</para>
</section>
<section>
Modified: beanvalidation/tck/tags/v1_0_0_GA/src/main/docbook/en-US/installation.xml
===================================================================
--- beanvalidation/tck/tags/v1_0_0_GA/src/main/docbook/en-US/installation.xml 2009-10-09 07:25:09 UTC (rev 17676)
+++ beanvalidation/tck/tags/v1_0_0_GA/src/main/docbook/en-US/installation.xml 2009-10-09 12:55:26 UTC (rev 17677)
@@ -71,7 +71,7 @@
source into a subfolder ri. This will allow you to run the TCK against
Hibernate Validator.</para>
- <programlisting>svn co http://anonsvn.jboss.org/repos/hibernate/validator/tags/v_4_0_0_GA ri</programlisting>
+ <programlisting>svn co http://anonsvn.jboss.org/repos/hibernate/validator/tags/v4_0_0_GA ri</programlisting>
<para>If you have downloaded the Hibernate Validator distribution, extract
it into a sibling folder named hibernate-validator. The resulting folder
@@ -84,7 +84,7 @@
<para>Each test class is treated as an individual artifact (hence the
<literal>@Artifact(artifactType = ArtifactType.JSR303)</literal>
annotation on the class). All test methods (i.e., methods annotated with
- <literal>@Test</literal>) in the test class are run. </para>
+ <literal>@Test</literal>) in the test class are run.</para>
<note>
<para>Using <literal>ArtifactType.JSR303</literal> is an additional
14 years, 8 months
Hibernate SVN: r17676 - sandbox/trunk/lobtest-ee5/lobtest-ejb.
by hibernate-commits@lists.jboss.org
Author: dstephan
Date: 2009-10-09 03:25:09 -0400 (Fri, 09 Oct 2009)
New Revision: 17676
Modified:
sandbox/trunk/lobtest-ee5/lobtest-ejb/hibernate-service.xml
Log:
Updates for HibernateService use case.
Modified: sandbox/trunk/lobtest-ee5/lobtest-ejb/hibernate-service.xml
===================================================================
--- sandbox/trunk/lobtest-ee5/lobtest-ejb/hibernate-service.xml 2009-10-09 07:23:34 UTC (rev 17675)
+++ sandbox/trunk/lobtest-ee5/lobtest-ejb/hibernate-service.xml 2009-10-09 07:25:09 UTC (rev 17676)
@@ -38,7 +38,7 @@
<property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider
</property>
- <attribute name="ClassResources">com.redhat.gss.lobtest.jpa.Thing</attribute>
+
</mbean>
</server>
14 years, 8 months