[jboss-cvs] jboss-portal/core/src/resources/portal-core-sar/conf/hibernate/portlet ...
Julien Viet
julien at jboss.com
Sat Jul 15 04:55:08 EDT 2006
User: julien
Date: 06/07/15 04:55:08
Modified: core/src/resources/portal-core-sar/conf/hibernate/portlet
domain.hbm.xml
Log:
JBPORTAL-960 : Hibernate domain configuration files do not declare properly the column constraints
Revision Changes Path
1.6 +13 -14 jboss-portal/core/src/resources/portal-core-sar/conf/hibernate/portlet/domain.hbm.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: domain.hbm.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-portal/core/src/resources/portal-core-sar/conf/hibernate/portlet/domain.hbm.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- domain.hbm.xml 30 May 2006 13:56:39 -0000 1.5
+++ domain.hbm.xml 15 Jul 2006 08:55:08 -0000 1.6
@@ -15,24 +15,24 @@
</id>
<property
name="portletId"
+ column="PORTLET_ID"
not-null="true"
- unique="false"
- column="PORTLET_ID"/>
+ unique="false"/>
<property
name="registrationId"
+ column="REGISTRATION_ID"
not-null="false"
- unique="false"
- column="REGISTRATION_ID"/>
+ unique="false"/>
<property
name="creationTime"
+ column="REGISTRATION_TIME"
not-null="false"
- unique="false"
- column="REGISTRATION_TIME"/>
+ unique="false"/>
<property
name="terminationTime"
+ column="TERMINATION_TIME"
not-null="false"
- unique="false"
- column="TERMINATION_TIME"/>
+ unique="false"/>
<map
name="entries"
sort="unsorted"
@@ -58,11 +58,10 @@
</set>
<many-to-one
name="parent"
+ column="PARENT_PK"
class="org.jboss.portal.core.impl.portlet.state.PersistentState"
cascade="none"
- fetch="select">
- <column name="PARENT_PK"/>
- </many-to-one>
+ fetch="select"/>
</class>
<class
@@ -93,16 +92,16 @@
</array>
<property
name="name"
+ column="NAME"
type="java.lang.String"
update="false"
insert="true"
- column="NAME"
not-null="false"/>
<property
name="type"
+ column="TYPE"
type="int"
update="true"
- insert="true"
- column="TYPE"/>
+ insert="true"/>
</class>
</hibernate-mapping>
More information about the jboss-cvs-commits
mailing list