the 5th problem:
the auto-created POJO:

  |     @OneToMany(cascade={}, fetch=FetchType.LAZY, mappedBy="unresolved")
  |     @Cascade( {CascadeType.ALL, CascadeType.DELETE_ORPHAN} )
  | //should be here @MapKey creatd?
  |     public Map<String,SodiaxFieldChangeEntry> getFieldChanges() {
  |         return this.fieldChanges;
  |     }
  |     
  |     public void setFieldChanges(Map<String,SodiaxFieldChangeEntry> 
fieldChanges) {
  |         this.fieldChanges = fieldChanges;
  |     }
  | 
the used hbm.xml file:

  | <?xml version="1.0"?>
  | <!DOCTYPE hibernate-mapping SYSTEM 
"file:D:/eclipse/eclipse_3.1.1_jboss_dali/workspace/infonds_hibernate/db/dtd/hibernate-mapping-3.0.dtd"
 >
  | <hibernate-mapping package="eu.cleversoft.infonds.ejb3.entities">
  |     <class name="SodiaxEntityChangeEntry" 
table="sodiax_entity_change_entry">
  |         <id name="changeId" column="change_id" type="java.lang.Integer">
  |             <generator class="native"/>
  |         </id>
  |  <many-to-one name="transaction" 
class="eu.cleversoft.infonds.ejb3.entities.SodiaxTransactionLog" 
column="transaction_id" />
  | <property name="entityKey" column="entity_key" type="java.lang.String" />
  | <property name="type" column="type" type="java.lang.String" />
  |             
  | <map name="fieldChanges" table="sodiax_field_change" inverse="true" 
cascade="all-delete-orphan">
  | <key column="change_id"/>
  | <map-key column="field" type="string"/>
  | <one-to-many 
class="eu.cleversoft.infonds.ejb3.entities.SodiaxFieldChangeEntry"/>
  | </map>              
  | </class>
  | </hibernate-mapping>
  | 

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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to