-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Composite Key Many-To-One relationship problem
PostPosted: Wed May 28, 2008 12:09 am 
Newbie

Joined: Wed Apr 30, 2008 6:13 am
Posts: 11
I have two tables called .

1)jp_summary
SUM_POLNUM
SUM_COMPANYCODE

these two are composite key
and the composite key is there in jp_notes table as foregin key

2)jp_notes

My hibernate file for:jp_summary
<hibernate-mapping>
<class name="com.ifs.app.model.adaptors.JpSummaryAdaptor"
table="jp_summary" lazy="true">
<composite-id>
<key-property name="sumPolnum" type="java.lang.String"
column="SUM_POLNUM" />
<key-property name="sumCompanycode" type="java.lang.String"
column="SUM_COMPANYCODE" />
</composite-id>
........
....
<set name="jpNotes" lazy="true" inverse="true" cascade="all" >
<key not-null="true">
<column name="POLICY_NO" />
<column name="COMPANY_CODE" />
</key>
<one-to-many
class="com.ifs.app.model.adaptors.JpNotesAdaptor" />
</set>
</class>
</hibernate-mapping>


My hibernate file for : jp_notes

<hibernate-mapping>
<class name="com.ifs.app.model.adaptors.JpNotesAdaptor"
table="jp_notes" lazy="true">
<id name="recordKey" type="java.lang.String"
column="record_key">
<generator class="uuid" />
</id>
<property name="noteDate" type="java.sql.Timestamp"
column="NOTE_DATE" not-null="true" length="10" />
<property name="insuredId" type="java.lang.Integer"
column="INSURED_ID" not-null="true" length="11" />
<property name="userId" type="java.lang.String" column="USER_ID"
not-null="true" length="20" />
<property name="note" type="java.lang.String" column="note"
not-null="false" length="25" />
<property name="viewExternal" type="java.lang.String"
column="view_external" not-null="false" length="1" />
<many-to-one name="jpSummary"
class="com.ifs.app.model.adaptors.JpSummaryAdaptor" insert="false"
update="false" not-null="true" >
<column name="POLICY_NO" ></column>
<column name="COMPANY_CODE"></column>
</many-to-one>

<many-to-one name="jpNotesDesc"
class="com.ifs.app.model.adaptors.JpNotesDescAdaptor"
not-null="true">
<column name="NOTE_CODE" />
</many-to-one>
</class>
</hibernate-mapping>


and the entities for these two are given below:

Jpsummary.java
package com.ifs.app.model.entities;

import java.sql.Timestamp;
import java.io.Serializable;
import java.util.Set;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

public class JpSummary extends com.ifs.app.model.BaseDomain implements Serializable {

private String sumCompanycode;

private String sumPolnum;

// private com.ifs.app.model.entities.JpSummaryPolComp policyNum;

private Timestamp sumDateaction;

private Timestamp sumEffdate;

private Timestamp sumEntrydate;

private Timestamp sumReceivedDate;

private String sumAppState;

private String sumAppCountry;

private String sumAgentcode;

private String sumAgencyCode;

private String sumUndwrid;

private String sumCsr;

private String sumRegion;

private String sumTeam;

private String sumStatus;

private Timestamp sumCloseDate;

private String sumOrg1;

private String sumOrg2;

private String sumOrg3;

private String sumOrg4;

private String sumReferto;

private String sumCounterDecl;

private String sumCurrCode;

private String sumArchived;

private String sumAppType;

private String sumReinsureCode;

private Timestamp sumInvTrgDate;

private Timestamp sumMailedDate;

private String sumLob;

private String sumMrktDist;

private Timestamp sumMainframeDate;

private String sumUndwrTeam;

private String sumEntryCode;

private String sumOriginCde;

private String hostKey;

private Float amountAtRisk;

private Float conversionAmount;

private String mecindicator;

private String unisex;

private String marketSegment;

private String marketProgram;

private String mktSegmntVerbage;

private String prbFundElection;

private String dcaFundElection;

private String dmdpFundElection;

private String reinsuranceAccepted;

private String enteredBy;

private String applicationNo;

private String applicationId;

private String illustrationCode;

private String sumOriginLoc;

// private String SumPolnumsumCompanycode;

private Set jpNotes;
/** full constructor */
public JpSummary(String sumPolnum, String sumCompanycode, Timestamp sumDateaction, Timestamp sumEffdate, Timestamp sumEntrydate, Timestamp sumReceivedDate, String sumAppState, String sumAppCountry, String sumAgentcode, String sumAgencyCode, String sumUndwrid, String sumCsr, String sumRegion, String sumTeam, String sumStatus, Timestamp sumCloseDate, String sumOrg1, String sumOrg2, String sumOrg3, String sumOrg4, String sumReferto, String sumCounterDecl, String sumCurrCode, String sumArchived, String sumAppType, String sumReinsureCode, Timestamp sumInvTrgDate, Timestamp sumMailedDate, String sumLob, String sumMrktDist, Timestamp sumMainframeDate, String sumUndwrTeam, String sumEntryCode, String sumOriginCde, String hostKey, Float amountAtRisk, Float conversionAmount, String mecindicator, String unisex, String marketSegment, String marketProgram, String mktSegmntVerbage, String prbFundElection, String dcaFundElection, String dmdpFundElection, String reinsuranceAccepted, String enteredBy, String applicationNo, String applicationId, String illustrationCode, String sumOriginLoc, Set jpNotes){
this.sumPolnum = sumPolnum;
this.sumCompanycode = sumCompanycode;
// this.policyNum = policyNum;
this.sumDateaction = sumDateaction;
this.sumEffdate = sumEffdate;
this.sumEntrydate = sumEntrydate;
this.sumReceivedDate = sumReceivedDate;
this.sumAppState = sumAppState;
this.sumAppCountry = sumAppCountry;
this.sumAgentcode = sumAgentcode;
this.sumAgencyCode = sumAgencyCode;
this.sumUndwrid = sumUndwrid;
this.sumCsr = sumCsr;
this.sumRegion = sumRegion;
this.sumTeam = sumTeam;
this.sumStatus = sumStatus;
this.sumCloseDate = sumCloseDate;
this.sumOrg1 = sumOrg1;
this.sumOrg2 = sumOrg2;
this.sumOrg3 = sumOrg3;
this.sumOrg4 = sumOrg4;
this.sumReferto = sumReferto;
this.sumCounterDecl = sumCounterDecl;
this.sumCurrCode = sumCurrCode;
this.sumArchived = sumArchived;
this.sumAppType = sumAppType;
this.sumReinsureCode = sumReinsureCode;
this.sumInvTrgDate = sumInvTrgDate;
this.sumMailedDate = sumMailedDate;
this.sumLob = sumLob;
this.sumMrktDist = sumMrktDist;
this.sumMainframeDate = sumMainframeDate;
this.sumUndwrTeam = sumUndwrTeam;
this.sumEntryCode = sumEntryCode;
this.sumOriginCde = sumOriginCde;
this.hostKey = hostKey;
this.amountAtRisk = amountAtRisk;
this.conversionAmount = conversionAmount;
this.mecindicator = mecindicator;
this.unisex = unisex;
this.marketSegment = marketSegment;
this.marketProgram = marketProgram;
this.mktSegmntVerbage = mktSegmntVerbage;
this.prbFundElection = prbFundElection;
this.dcaFundElection = dcaFundElection;
this.dmdpFundElection = dmdpFundElection;
this.reinsuranceAccepted = reinsuranceAccepted;
this.enteredBy = enteredBy;
this.applicationNo = applicationNo;
this.applicationId = applicationId;
this.illustrationCode = illustrationCode;
this.sumOriginLoc = sumOriginLoc;
this.jpNotes = jpNotes;

}

/** default constructor */
public JpSummary(){
}

/** minimal constructor */
public JpSummary(String sumStatus, Set jpNotes,String sumPolnum, String sumCompanycode){
this.sumPolnum = sumPolnum;
this.sumStatus = sumStatus;
this.sumCompanycode = sumCompanycode;
this.jpNotes = jpNotes;
// this.policyNum = policyNum;
}


public Timestamp getSumDateaction() {
return this.sumDateaction;
}

public void setSumDateaction(Timestamp sumDateaction) {
this.sumDateaction = sumDateaction;
}

public Timestamp getSumEffdate() {
return this.sumEffdate;
}

public void setSumEffdate(Timestamp sumEffdate) {
this.sumEffdate = sumEffdate;
}

public Timestamp getSumEntrydate() {
return this.sumEntrydate;
}

public void setSumEntrydate(Timestamp sumEntrydate) {
this.sumEntrydate = sumEntrydate;
}

public Timestamp getSumReceivedDate() {
return this.sumReceivedDate;
}

public void setSumReceivedDate(Timestamp sumReceivedDate) {
this.sumReceivedDate = sumReceivedDate;
}

public String getSumAppState() {
return this.sumAppState;
}

public void setSumAppState(String sumAppState) {
this.sumAppState = sumAppState;
}

public String getSumAppCountry() {
return this.sumAppCountry;
}

public void setSumAppCountry(String sumAppCountry) {
this.sumAppCountry = sumAppCountry;
}

public String getSumAgentcode() {
return this.sumAgentcode;
}

public void setSumAgentcode(String sumAgentcode) {
this.sumAgentcode = sumAgentcode;
}

public String getSumAgencyCode() {
return this.sumAgencyCode;
}

public void setSumAgencyCode(String sumAgencyCode) {
this.sumAgencyCode = sumAgencyCode;
}

public String getSumUndwrid() {
return this.sumUndwrid;
}

public void setSumUndwrid(String sumUndwrid) {
this.sumUndwrid = sumUndwrid;
}

public String getSumCsr() {
return this.sumCsr;
}

public void setSumCsr(String sumCsr) {
this.sumCsr = sumCsr;
}

public String getSumRegion() {
return this.sumRegion;
}

public void setSumRegion(String sumRegion) {
this.sumRegion = sumRegion;
}

public String getSumTeam() {
return this.sumTeam;
}

public void setSumTeam(String sumTeam) {
this.sumTeam = sumTeam;
}

public String getSumStatus() {
return this.sumStatus;
}

public void setSumStatus(String sumStatus) {
this.sumStatus = sumStatus;
}

public Timestamp getSumCloseDate() {
return this.sumCloseDate;
}

public void setSumCloseDate(Timestamp sumCloseDate) {
this.sumCloseDate = sumCloseDate;
}

public String getSumOrg1() {
return this.sumOrg1;
}

public void setSumOrg1(String sumOrg1) {
this.sumOrg1 = sumOrg1;
}

public String getSumOrg2() {
return this.sumOrg2;
}

public void setSumOrg2(String sumOrg2) {
this.sumOrg2 = sumOrg2;
}

public String getSumOrg3() {
return this.sumOrg3;
}

public void setSumOrg3(String sumOrg3) {
this.sumOrg3 = sumOrg3;
}

public String getSumOrg4() {
return this.sumOrg4;
}

public void setSumOrg4(String sumOrg4) {
this.sumOrg4 = sumOrg4;
}

public String getSumReferto() {
return this.sumReferto;
}

public void setSumReferto(String sumReferto) {
this.sumReferto = sumReferto;
}

public String getSumCounterDecl() {
return this.sumCounterDecl;
}

public void setSumCounterDecl(String sumCounterDecl) {
this.sumCounterDecl = sumCounterDecl;
}

public String getSumCurrCode() {
return this.sumCurrCode;
}

public void setSumCurrCode(String sumCurrCode) {
this.sumCurrCode = sumCurrCode;
}

public String getSumArchived() {
return this.sumArchived;
}

public void setSumArchived(String sumArchived) {
this.sumArchived = sumArchived;
}

// public String getSumCompanycode() {
// return this.sumCompanycode;
// }
//
// public void setSumCompanycode(String sumCompanycode) {
// this.sumCompanycode = sumCompanycode;
// }

public String getSumAppType() {
return this.sumAppType;
}

public void setSumAppType(String sumAppType) {
this.sumAppType = sumAppType;
}

public String getSumReinsureCode() {
return this.sumReinsureCode;
}

public void setSumReinsureCode(String sumReinsureCode) {
this.sumReinsureCode = sumReinsureCode;
}

public Timestamp getSumInvTrgDate() {
return this.sumInvTrgDate;
}

public void setSumInvTrgDate(Timestamp sumInvTrgDate) {
this.sumInvTrgDate = sumInvTrgDate;
}

public Timestamp getSumMailedDate() {
return this.sumMailedDate;
}

public void setSumMailedDate(Timestamp sumMailedDate) {
this.sumMailedDate = sumMailedDate;
}

public String getSumLob() {
return this.sumLob;
}

public void setSumLob(String sumLob) {
this.sumLob = sumLob;
}

public String getSumMrktDist() {
return this.sumMrktDist;
}

public void setSumMrktDist(String sumMrktDist) {
this.sumMrktDist = sumMrktDist;
}

public Timestamp getSumMainframeDate() {
return this.sumMainframeDate;
}

public void setSumMainframeDate(Timestamp sumMainframeDate) {
this.sumMainframeDate = sumMainframeDate;
}

public String getSumUndwrTeam() {
return this.sumUndwrTeam;
}

public void setSumUndwrTeam(String sumUndwrTeam) {
this.sumUndwrTeam = sumUndwrTeam;
}

public String getSumEntryCode() {
return this.sumEntryCode;
}

public void setSumEntryCode(String sumEntryCode) {
this.sumEntryCode = sumEntryCode;
}

public String getSumOriginCde() {
return this.sumOriginCde;
}

public void setSumOriginCde(String sumOriginCde) {
this.sumOriginCde = sumOriginCde;
}

public String getHostKey() {
return this.hostKey;
}

public void setHostKey(String hostKey) {
this.hostKey = hostKey;
}

public Float getAmountAtRisk() {
return this.amountAtRisk;
}

public void setAmountAtRisk(Float amountAtRisk) {
this.amountAtRisk = amountAtRisk;
}

public Float getConversionAmount() {
return this.conversionAmount;
}

public void setConversionAmount(Float conversionAmount) {
this.conversionAmount = conversionAmount;
}

public String getMecindicator() {
return this.mecindicator;
}

public void setMecindicator(String mecindicator) {
this.mecindicator = mecindicator;
}

public String getUnisex() {
return this.unisex;
}

public void setUnisex(String unisex) {
this.unisex = unisex;
}

public String getMarketSegment() {
return this.marketSegment;
}

public void setMarketSegment(String marketSegment) {
this.marketSegment = marketSegment;
}

public String getMarketProgram() {
return this.marketProgram;
}

public void setMarketProgram(String marketProgram) {
this.marketProgram = marketProgram;
}

public String getMktSegmntVerbage() {
return this.mktSegmntVerbage;
}

public void setMktSegmntVerbage(String mktSegmntVerbage) {
this.mktSegmntVerbage = mktSegmntVerbage;
}

public String getPrbFundElection() {
return this.prbFundElection;
}

public void setPrbFundElection(String prbFundElection) {
this.prbFundElection = prbFundElection;
}

public String getDcaFundElection() {
return this.dcaFundElection;
}

public void setDcaFundElection(String dcaFundElection) {
this.dcaFundElection = dcaFundElection;
}

public String getDmdpFundElection() {
return this.dmdpFundElection;
}

public void setDmdpFundElection(String dmdpFundElection) {
this.dmdpFundElection = dmdpFundElection;
}

public String getReinsuranceAccepted() {
return this.reinsuranceAccepted;
}

public void setReinsuranceAccepted(String reinsuranceAccepted) {
this.reinsuranceAccepted = reinsuranceAccepted;
}

public String getEnteredBy() {
return this.enteredBy;
}

public void setEnteredBy(String enteredBy) {
this.enteredBy = enteredBy;
}

public String getApplicationNo() {
return this.applicationNo;
}

public void setApplicationNo(String applicationNo) {
this.applicationNo = applicationNo;
}

public String getApplicationId() {
return this.applicationId;
}

public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}

public String getIllustrationCode() {
return this.illustrationCode;
}

public void setIllustrationCode(String illustrationCode) {
this.illustrationCode = illustrationCode;
}

public String getSumOriginLoc() {
return this.sumOriginLoc;
}

public void setSumOriginLoc(String sumOriginLoc) {
this.sumOriginLoc = sumOriginLoc;
}


public Set getJpNotes() {
return this.jpNotes;
}

public void setJpNotes(Set jpNotes) {
this.jpNotes = jpNotes;
}




/**
* @return the sumCompanycode
*/
public String getSumCompanycode() {
return sumCompanycode;
}

/**
* @param sumCompanycode the sumCompanycode to set
*/
public void setSumCompanycode(String sumCompanycode) {
this.sumCompanycode = sumCompanycode;
}

/**
* @return the sumPolnum
*/
public String getSumPolnum() {
return this.sumPolnum;
}

/**
* @param sumPolnum the sumPolnum to set
*/
public void setSumPolnum(String sumPolnum) {
this.sumPolnum = sumPolnum;
}





}


Jpnotes.java

package com.ifs.app.model.entities;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Set;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

public class JpNotes extends com.ifs.app.model.BaseDomain implements Serializable {

private String recordKey;

// private com.ifs.app.model.entities.JpSummary jpSummary;

private com.ifs.app.model.entities.JpNotesDesc jpNotesDesc;

private Timestamp noteDate;

private Integer insuredId;

private String userId;

private String note;

private Set jpSummary;

// private com.ifs.app.model.entities.JpSummary policyNo;
//
// private com.ifs.app.model.entities.JpSummary companyCode;

private String viewExternal;

/** full constructor */
public JpNotes(String recordKey, Set jpSummary, com.ifs.app.model.entities.JpNotesDesc jpNotesDesc, Timestamp noteDate, Integer insuredId, String userId,String note, String viewExternal){
this.recordKey = recordKey;
this.jpSummary = jpSummary;
// this.companyCode = companyCode;
this.jpNotesDesc = jpNotesDesc;
this.noteDate = noteDate;
this.insuredId = insuredId;
this.userId = userId;
this.note = note;
// this.policyNo = policyNo;
// this.companyCode = companyCode;
this.viewExternal = viewExternal;

}

/** default constructor */
public JpNotes(){
}

/** minimal constructor */
public JpNotes(String recordKey, Set jpSummary, com.ifs.app.model.entities.JpNotesDesc jpNotesDesc, Timestamp noteDate, Integer insuredId, String userId, com.ifs.app.model.entities.JpSummary policyNo){
this.recordKey = recordKey;
this.jpSummary = jpSummary;
// this.companyCode = companyCode;
this.jpNotesDesc = jpNotesDesc;
this.noteDate = noteDate;
this.insuredId = insuredId;
this.userId = userId;
// this.policyNo = policyNo;

}

public String getRecordKey() {
return this.recordKey;
}

public void setRecordKey(String recordKey) {
this.recordKey = recordKey;
}

/*public com.ifs.app.model.entities.JpSummary getJpSummary() {
return this.jpSummary;
}

public void setJpSummary(com.ifs.app.model.entities.JpSummary jpSummary) {
this.jpSummary = jpSummary;
// this.policyNo = policyNo;
}*/

public com.ifs.app.model.entities.JpNotesDesc getJpNotesDesc() {
return this.jpNotesDesc;
}

public void setJpNotesDesc(com.ifs.app.model.entities.JpNotesDesc jpNotesDesc) {
this.jpNotesDesc = jpNotesDesc;
}

public Timestamp getNoteDate() {
return this.noteDate;
}

public void setNoteDate(Timestamp noteDate) {
this.noteDate = noteDate;
}

public Integer getInsuredId() {
return this.insuredId;
}

public void setInsuredId(Integer insuredId) {
this.insuredId = insuredId;
}

public String getUserId() {
return this.userId;
}

public void setUserId(String userId) {
this.userId = userId;
}

public String getNote() {
return this.note;
}

public void setNote(String note) {
this.note = note;
}

public Set getJpSummary() {
System.out.println("Test get---->"+jpSummary.isEmpty());
return this.jpSummary;
}

public void setJpSummary(Set jpSummary) {
if(jpSummary != null) {
System.out.println("Test set---->"+jpSummary.isEmpty());
this.jpSummary = jpSummary;
}
}

public String getViewExternal() {
return this.viewExternal;
}

public void setViewExternal(String viewExternal) {
this.viewExternal = viewExternal;
}


public String toString() {
return new ToStringBuilder(this)
.append("recordKey",getRecordKey())
.toString();
}

public boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( !(other instanceof JpNotes) ) return false;
JpNotes castOther = (JpNotes) other;
return new EqualsBuilder()
.append(this.getRecordKey(), castOther.getRecordKey())
.isEquals();
}

public int hashCode() {
return new HashCodeBuilder()
.append(getRecordKey())
.toHashCode();
}
}



Is it the correct relation?????Because i am facing problem when i am trying to run this.CGLIB error.


Full error stack is below:

org.springframework.orm.hibernate3.HibernateSystemException: exception getting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) getter of com.ifs.app.model.adaptors.JpSummaryAdaptor.?; nested exception is org.hibernate.PropertyAccessException: exception getting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) getter of com.ifs.app.model.adaptors.JpSummaryAdaptor.?
org.hibernate.PropertyAccessException: exception getting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) getter of com.ifs.app.model.adaptors.JpSummaryAdaptor.?
at org.hibernate.tuple.PojoComponentTuplizer.getPropertyValues(PojoComponentTuplizer.java:79)
at org.hibernate.type.ComponentType.getPropertyValues(ComponentType.java:307)
at org.hibernate.type.ComponentType.getHashCode(ComponentType.java:158)
at org.hibernate.engine.EntityKey.getHashCode(EntityKey.java:69)
at org.hibernate.engine.EntityKey.<init>(EntityKey.java:42)
at org.hibernate.engine.StatefulPersistenceContext.getDatabaseSnapshot(StatefulPersistenceContext.java:298)
at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:189)
at org.hibernate.engine.ForeignKeys$Nullifier.isNullifiable(ForeignKeys.java:137)
at org.hibernate.engine.ForeignKeys$Nullifier.nullifyTransientReferences(ForeignKeys.java:69)
at org.hibernate.engine.ForeignKeys$Nullifier.nullifyTransientReferences(ForeignKeys.java:47)
at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:263)
at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:167)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:114)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:186)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:175)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:98)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:502)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:496)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:492)
at org.springframework.orm.hibernate3.HibernateTemplate$18.doInHibernate(HibernateTemplate.java:673)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:358)
at org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:670)
at com.ifs.app.dao.hibernate.BaseDAO.saveOrUpdate(BaseDAO.java:50)
at com.ifs.app.dao.hibernate.JpNotesDAOHibernate.save(JpNotesDAOHibernate.java:37)
at com.ifs.app.service.uw.jpcasenote.CaseNoteService.updateCaseNotes(CaseNoteService.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
at $Proxy1.updateCaseNotes(Unknown Source)
at test.com.ifs.app.service.uw.casenote.TestCaseNoteService.testUpdateCaseNote(TestCaseNoteService.java:125)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: java.lang.ClassCastException: java.util.HashSet
at com.ifs.app.model.adaptors.JpSummaryAdaptor$$BulkBeanByCGLIB$$5895e85b_2.getPropertyValues(<generated>)
at net.sf.cglib.beans.BulkBean.getPropertyValues(BulkBean.java:48)
at org.hibernate.tuple.PojoComponentTuplizer.getPropertyValues(PojoComponentTuplizer.java:76)
... 55 more
null




Can anybody help me on this ...............


Regards
Debapriya


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.