From: Chad B. <cwb...@us...> - 2005-01-31 05:36:42
|
User: cwbrandon Date: 05/01/30 21:36:36 Modified: andromda-hibernate/src/templates/hibernate hibernate.hbm.xml.vm andromda-hibernate/src/templates/hibernate/ejb HibernateSessionBean.vsl andromda-hibernate/src/test/expected cartridge-output.zip Log: sourceEnd.required should be otherEnd.required, also fix HIB-46 Revision Changes Path 1.9 +1 -1 cartridges/andromda-hibernate/src/templates/hibernate/hibernate.hbm.xml.vm Index: hibernate.hbm.xml.vm =================================================================== RCS file: /cvsroot/andromda/cartridges/andromda-hibernate/src/templates/hibernate/hibernate.hbm.xml.vm,v retrieving revision 1.8 retrieving revision 1.9 diff -u -w -r1.8 -r1.9 --- hibernate.hbm.xml.vm 26 Jan 2005 17:54:11 -0000 1.8 +++ hibernate.hbm.xml.vm 31 Jan 2005 05:36:34 -0000 1.9 @@ -56,7 +56,7 @@ <one-to-many class="$otherEnd.type.fullyQualifiedEntityImplementationName"/> </set> #elseif ($sourceEnd.many2One) - <many-to-one name="$otherEnd.name" class="$otherEnd.type.fullyQualifiedEntityImplementationName" outer-join="$otherEnd.outerJoin"#if ($otherEnd.child) cascade="$sourceEnd.hibernateCascade"#end#if ($sourceEnd.required) not-null="true"#end > + <many-to-one name="$otherEnd.name" class="$otherEnd.type.fullyQualifiedEntityImplementationName" outer-join="$otherEnd.outerJoin"#if ($otherEnd.child) cascade="$sourceEnd.hibernateCascade"#end#if ($otherEnd.required) not-null="true"#end > <column name="$otherEnd.columnName"/> </many-to-one> #elseif ($sourceEnd.many2Many) 1.8 +0 -2 cartridges/andromda-hibernate/src/templates/hibernate/ejb/HibernateSessionBean.vsl Index: HibernateSessionBean.vsl =================================================================== RCS file: /cvsroot/andromda/cartridges/andromda-hibernate/src/templates/hibernate/ejb/HibernateSessionBean.vsl,v retrieving revision 1.7 retrieving revision 1.8 diff -u -w -r1.7 -r1.8 --- HibernateSessionBean.vsl 24 Jan 2005 04:46:52 -0000 1.7 +++ HibernateSessionBean.vsl 31 Jan 2005 05:36:35 -0000 1.8 @@ -6,13 +6,11 @@ package $service.packageName; import javax.ejb.EJBException; -import javax.naming.InitialContext; import javax.naming.NamingException; import net.sf.hibernate.HibernateException; import net.sf.hibernate.Session; import net.sf.hibernate.SessionFactory; -import net.sf.hibernate.cfg.Configuration; import ${customTypesPackage}.HibernateUtils; 1.57 +136 -132 cartridges/andromda-hibernate/src/test/expected/cartridge-output.zip <<Binary file>> |