[jboss-dev-forums] [Design of JBoss Portal] - Map collection mapping giving problem

saha.saptarshi do-not-reply at jboss.com
Mon Feb 5 07:58:19 EST 2007


Hi,

I have add a map to hibernate "FormTabMetaData" class map file. As a result now the class is not fatching any record.I am adding coding here.Any help will be cherished.

There are three tables:
FormTabMetaData--
1.1 tabid
1.2 fieldid
1.3 name
------------
FormFieldMetaData--
2.1 fieldid
2.2 name
2.3 attrbtid
------------
AttributeRight--
3.1 attrbtid
3.2 name

The map code is:
        <map name="visibleAttributes" table="formFieldMetaData" lazy="true" >
  |         	<key column="idFormTabMetaData"/>
  |         	<index column="idFormFieldMetaData" type="java.lang.Long" >
  |         	</index> 
  | 			<composite-element class="com.eforce.license.licensemanager.transferobject.AttributeRight">
  | 				<parent name="formFieldMetaData"/>
  | 				<property name="name" column="idAttributePermission" type="java.lang.Long" not-null="true"/>
  | 			</composite-element>
  | 	        <filter name="Deleted" />
  |         </map>
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4011310#4011310

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4011310



More information about the jboss-dev-forums mailing list