[jboss-cvs] jboss-portal/core/src/resources/portal-core-sar/conf/hibernate/instance ...

Julien Viet julien at jboss.com
Sat Jul 15 04:55:07 EDT 2006


  User: julien  
  Date: 06/07/15 04:55:07

  Modified:    core/src/resources/portal-core-sar/conf/hibernate/instance 
                        domain.hbm.xml
  Log:
  JBPORTAL-960 : Hibernate domain configuration files do not declare properly the column constraints
  
  Revision  Changes    Path
  1.23      +21 -24    jboss-portal/core/src/resources/portal-core-sar/conf/hibernate/instance/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/instance/domain.hbm.xml,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -b -r1.22 -r1.23
  --- domain.hbm.xml	12 Jun 2006 22:40:08 -0000	1.22
  +++ domain.hbm.xml	15 Jul 2006 08:55:07 -0000	1.23
  @@ -15,25 +15,25 @@
         </id>
         <property
            name="instanceId"
  +         column="ID"
            not-null="true"
  -         unique="true"
  -         column="ID"/>
  +         unique="true"/>
         <property
            name="portletRef"
  +         column="PORTLET_REF"
            not-null="false"
  -         unique="false"
  -         column="PORTLET_REF"/>
  +         unique="false"/>
         <property
            name="modifiable"
  +         column="MODIFIABLE"
            not-null="true"
  -         unique="false"
  -         column="MODIFIABLE"/>
  +         unique="false"/>
         <property
            name="state"
  +         column="SER_STATE"
            not-null="false"
            unique="false"
  -         length="50000000"
  -         column="SER_STATE"/>
  +         length="50000000"/>
         <map
            name="securityBindings"
            sort="unsorted"
  @@ -69,27 +69,26 @@
         </id>
         <many-to-one
            name="instance"
  +         column="INSTANCE_KEY"
            class="org.jboss.portal.core.impl.model.instance.InstanceImpl"
            cascade="none"
  -         fetch="select">
  -         <column name="INSTANCE_PK"/>
  -      </many-to-one>
  +         fetch="select"/>
         <property
            name="userId"
  +         column="USER_ID"
            not-null="true"
  -         unique="false"
  -         column="USER_ID"/>
  +         unique="false"/>
         <property
            name="portletRef"
  +         column="PORTLET_REF"
            not-null="false"
  -         unique="false"
  -         column="PORTLET_REF"/>
  +         unique="false"/>
         <property
            name="state"
  +         column="SER_STATE"
            not-null="false"
            unique="false"
  -         length="50000000"
  -         column="SER_STATE"/>
  +         length="50000000"/>
      </class>
   
      <class
  @@ -106,10 +105,9 @@
         </id>
         <property
            name="role"
  +         column="ROLE"
            not-null="true"
  -         unique="false">
  -         <column name="ROLE"/>
  -      </property> 
  +         unique="false"/>
   	   <set
            name="actions"
            table="JBP_INSTANCE_SECURITY_ACTIONS" 
  @@ -120,10 +118,9 @@
         </set>
         <many-to-one
            name="instance"
  +         column="INSTANCE_PK"
            class="org.jboss.portal.core.impl.model.instance.InstanceImpl"
            cascade="none"
  -         fetch="select">
  -         <column name="INSTANCE_PK"/>
  -      </many-to-one>
  +         fetch="select"/>
      </class> 
   </hibernate-mapping> 
  
  
  



More information about the jboss-cvs-commits mailing list