-->
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: Error when using Hibernate:One to One mapping
PostPosted: Thu Sep 21, 2006 6:45 am 
Newbie

Joined: Thu Sep 21, 2006 5:58 am
Posts: 1
Hi, I am getting an error when I run a select * from table (where table is either inv_txn or accr_txn). Both the tables have a composite key and is a one-to-one relationship.

Code is generated using middlegen.
Can anyone help me out. Details of the 2 classes and mappings are below.

Hibernate version:3.1.2

Mapping documents:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >

<hibernate-mapping>
<!--
Created by the Middlegen Hibernate plugin 2.2

http://boss.bekk.no/boss/middlegen/
http://www.hibernate.org/
-->

<class
name="com.capgent.cpt.common.to.AccrTxn"
table="ACCR_TXN"
lazy="false"
>

<composite-id name="comp_id" class="com.capgent.cpt.common.to.AccrTxnPK">
<key-property
name="ivId"
column="IV_ID"
type="java.lang.String"
length="18"
/>
<key-property
name="ivDate"
column="IV_DATE"
type="java.sql.Timestamp"
length="7"
/>
</composite-id>

<property
name="sbId"
type="java.lang.String"
column="SB_ID"
not-null="true"
length="18"
/>
<property
name="arBthdte"
type="java.sql.Timestamp"
column="AR_BTHDTE"
not-null="true"
length="7"
/>
<property
name="arPayr"
type="java.lang.String"
column="AR_PAYR"
length="18"
/>
<property
name="arInvvns"
type="java.lang.String"
column="AR_INVVNS"
length="5"
/>
<property
name="arInvvno"
type="java.lang.String"
column="AR_INVVNO"
length="18"
/>
<property
name="arDesc"
type="java.lang.String"
column="AR_DESC"
length="100"
/>
<property
name="arSlsprn"
type="java.lang.String"
column="AR_SLSPRN"
length="50"
/>
<property
name="arCusgrp"
type="java.lang.String"
column="AR_CUSGRP"
length="18"
/>
<property
name="arXchrtpe"
type="java.lang.Integer"
column="AR_XCHRTPE"
length="2"
/>
<property
name="arXchrte"
type="java.math.BigDecimal"
column="AR_XCHRTE"
length="12"
/>
<property
name="arFcuramt"
type="java.math.BigDecimal"
column="AR_FCURAMT"
length="13"
/>
<property
name="arVatamt"
type="java.math.BigDecimal"
column="AR_VATAMT"
length="12"
/>
<property
name="arChgtpe"
type="java.lang.String"
column="AR_CHGTPE"
length="18"
/>
<property
name="arMrkup"
type="java.lang.Integer"
column="AR_MRKUP"
length="1"
/>
<property
name="arFwudte"
type="java.sql.Timestamp"
column="AR_FWUDTE"
length="7"
/>
<property
name="arAccdte"
type="java.sql.Timestamp"
column="AR_ACCDTE"
length="7"
/>
<property
name="accCode"
type="java.lang.String"
column="ACC_CODE"
length="18"
/>
<property
name="arBank"
type="java.lang.Integer"
column="AR_BANK"
length="8"
/>
<property
name="arCdsct"
type="java.lang.Integer"
column="AR_CDSCT"
length="8"
/>
<property
name="arPytmtd"
type="java.lang.String"
column="AR_PYTMTD"
length="18"
/>
<property
name="arReccde"
type="java.lang.Integer"
column="AR_RECCDE"
length="1"
/>
<property
name="arRecdte"
type="java.sql.Timestamp"
column="AR_RECDTE"
length="7"
/>
<property
name="arAdvcde"
type="java.lang.String"
column="AR_ADVCDE"
length="18"
/>
<property
name="arPyrem"
type="java.lang.Integer"
column="AR_PYREM"
length="8"
/>
<property
name="arLremdte"
type="java.sql.Timestamp"
column="AR_LREMDTE"
length="7"
/>
<property
name="arPtremdte"
type="java.sql.Timestamp"
column="AR_PTREMDTE"
length="7"
/>
<property
name="arStpby"
type="java.lang.String"
column="AR_STPBY"
length="50"
/>
<property
name="arStpdte"
type="java.sql.Timestamp"
column="AR_STPDTE"
length="7"
/>
<property
name="arNopytrm"
type="java.lang.Integer"
column="AR_NOPYTRM"
length="4"
/>
<property
name="arIntinvb"
type="java.lang.Integer"
column="AR_INTINVB"
length="1"
/>
<property
name="arIntinvs"
type="java.lang.Integer"
column="AR_INTINVS"
length="1"
/>
<property
name="arCintamt"
type="java.math.BigDecimal"
column="AR_CINTAMT"
length="12"
/>
<property
name="arFlgcde"
type="java.lang.Integer"
column="AR_FLGCDE"
length="1"
/>
<property
name="arGpindte"
type="java.sql.Timestamp"
column="AR_GPINDTE"
length="7"
/>
<property
name="arTxt"
type="java.lang.String"
column="AR_TXT"
length="100"
/>
<property
name="arDoclnk"
type="java.lang.String"
column="AR_DOCLNK"
length="100"
/>
<property
name="arDrtprd"
type="java.lang.Integer"
column="AR_DRTPRD"
length="1"
/>
<property
name="arDrprdte"
type="java.sql.Timestamp"
column="AR_DRPRDTE"
length="7"
/>
<property
name="arProdgrp"
type="java.lang.String"
column="AR_PRODGRP"
length="18"
/>
<property
name="arOrdno"
type="java.lang.String"
column="AR_ORDNO"
length="18"
/>
<property
name="arTxndte"
type="java.sql.Timestamp"
column="AR_TXNDTE"
length="7"
/>
<property
name="arFrttrm"
type="java.lang.String"
column="AR_FRTTRM"
length="18"
/>
<property
name="arNbr"
type="java.lang.String"
column="AR_NBR"
length="18"
/>
<property
name="arPrint"
type="java.lang.Integer"
column="AR_PRINT"
length="1"
/>
<property
name="arCrtdby"
type="java.lang.String"
column="AR_CRTDBY"
not-null="true"
length="18"
/>
<property
name="arModby"
type="java.lang.String"
column="AR_MODBY"
length="18"
/>
<property
name="arCrtddt"
type="java.sql.Timestamp"
column="AR_CRTDDT"
not-null="true"
length="7"
/>
<property
name="arModdt"
type="java.sql.Timestamp"
column="AR_MODDT"
length="7"
/>
<property
name="enId"
type="java.lang.Integer"
column="EN_ID"
length="8"
/>
<property
name="steId"
type="java.lang.Integer"
column="STE_ID"
length="8"
/>

<!-- Associations -->
<!-- derived association(s) for compound key -->
<!-- end of derived association(s) -->

<!-- bi-directional one-to-one association to InvTxn -->
<one-to-one
name="invTxn"
class="com.capgent.cpt.common.to.InvTxn"
outer-join="auto"
constrained="true"
/>
<!-- bi-directional many-to-one association to StsHdr -->
<many-to-one
name="stsHdr"
class="com.capgent.cpt.common.to.StsHdr"
not-null="true"
>
<column name="ST_ID" />
</many-to-one>
<!-- bi-directional many-to-one association to PytHdr -->
<many-to-one
name="pytHdr"
class="com.capgent.cpt.common.to.PytHdr"
not-null="true"
>
<column name="PY_TERMS" />
</many-to-one>
<!-- bi-directional many-to-one association to PrtyHdr -->
<many-to-one
name="prtyHdr"
class="com.capgent.cpt.common.to.PrtyHdr"
not-null="true"
>
<column name="PR_ID" />
</many-to-one>

</class>
</hibernate-mapping>


<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >

<hibernate-mapping>
<!--
Created by the Middlegen Hibernate plugin 2.2

http://boss.bekk.no/boss/middlegen/
http://www.hibernate.org/
-->

<class
name="com.capgent.cpt.common.to.InvTxn"
table="INV_TXN"
lazy="false"
>

<composite-id name="comp_id" class="com.capgent.cpt.common.to.InvTxnPK">
<key-property
name="ivId"
column="IV_ID"
type="java.lang.String"
length="18"
/>
<key-property
name="ivDate"
column="IV_DATE"
type="java.sql.Timestamp"
length="7"
/>
</composite-id>

<property
name="ivPinvid"
type="java.lang.String"
column="IV_PINVID"
length="18"
/>
<property
name="ivSbid"
type="java.lang.String"
column="IV_SBID"
length="18"
/>
<property
name="ivCurr"
type="java.lang.String"
column="IV_CURR"
length="3"
/>
<property
name="ivChgs"
type="java.math.BigDecimal"
column="IV_CHGS"
length="12"
/>
<property
name="ivTlamt"
type="java.math.BigDecimal"
column="IV_TLAMT"
length="13"
/>
<property
name="ivShpadd"
type="java.lang.Integer"
column="IV_SHPADD"
length="8"
/>
<property
name="ivBlno"
type="java.lang.String"
column="IV_BLNO"
length="18"
/>
<property
name="ivShmode"
type="java.lang.String"
column="IV_SHMODE"
length="18"
/>
<property
name="ivCarr"
type="java.lang.String"
column="IV_CARR"
length="18"
/>
<property
name="ivBilladd"
type="java.lang.Integer"
column="IV_BILLADD"
length="8"
/>
<property
name="ivCrtrms"
type="java.lang.Integer"
column="IV_CRTRMS"
length="8"
/>
<property
name="ivTerms"
type="java.lang.String"
column="IV_TERMS"
length="18"
/>
<property
name="ivAttdtls"
type="java.lang.String"
column="IV_ATTDTLS"
length="50"
/>
<property
name="ivText"
type="java.lang.String"
column="IV_TEXT"
length="100"
/>
<property
name="ivBtchdte"
type="java.sql.Timestamp"
column="IV_BTCHDTE"
length="7"
/>
<property
name="ivAdvpaid"
type="java.math.BigDecimal"
column="IV_ADVPAID"
length="12"
/>
<property
name="ivAdvadj"
type="java.math.BigDecimal"
column="IV_ADVADJ"
length="12"
/>
<property
name="ivPrntd"
type="java.lang.Integer"
column="IV_PRNTD"
length="1"
/>
<property
name="ivMode"
type="java.lang.String"
column="IV_MODE"
length="18"
/>
<property
name="ivType"
type="java.lang.String"
column="IV_TYPE"
length="18"
/>
<property
name="ivDuedate"
type="java.sql.Timestamp"
column="IV_DUEDATE"
length="7"
/>
<property
name="ivTariff"
type="java.lang.String"
column="IV_TARIFF"
length="18"
/>
<property
name="ivTxndte"
type="java.sql.Timestamp"
column="IV_TXNDTE"
length="7"
/>
<property
name="ivGpinvno"
type="java.lang.String"
column="IV_GPINVNO"
length="18"
/>
<property
name="ivCrtdby"
type="java.lang.String"
column="IV_CRTDBY"
not-null="true"
length="18"
/>
<property
name="ivModby"
type="java.lang.String"
column="IV_MODBY"
length="18"
/>
<property
name="ivCrtddt"
type="java.sql.Timestamp"
column="IV_CRTDDT"
not-null="true"
length="7"
/>
<property
name="ivModdt"
type="java.sql.Timestamp"
column="IV_MODDT"
length="7"
/>
<property
name="ivCusno"
type="java.lang.String"
column="IV_CUSNO"
length="18"
/>
<property
name="enId"
type="java.lang.Integer"
column="EN_ID"
length="8"
/>
<property
name="steId"
type="java.lang.Integer"
column="STE_ID"
length="8"
/>

<!-- Associations -->
<!-- derived association(s) for compound key -->
<!-- end of derived association(s) -->

<!-- bi-directional many-to-one association to StsHdr -->
<many-to-one
name="stsHdr"
class="com.capgent.cpt.common.to.StsHdr"
not-null="true"
>
<column name="ST_ID" />
</many-to-one>
<!-- bi-directional one-to-many association to DispTxn -->

<set
name="dispTxns"
lazy="true"
inverse="true"
cascade="all"

>
<key>
<column name="IV_ID" />
<column name="IV_DATE" />
</key>

<one-to-many
class="com.capgent.cpt.common.to.DispTxn"
/>
</set>
<!-- bi-directional one-to-many association to AltLog -->

<set
name="altLogs"
lazy="true"
inverse="true"
cascade="all"

>
<key>
<column name="IV_ID" />
<column name="IV_DATE" />
</key>

<one-to-many
class="com.capgent.cpt.common.to.AltLog"
/>
</set>
<!-- bi-directional one-to-one association to AccrTxn -->
<one-to-one
name="accrTxn"
class="com.capgent.cpt.common.to.AccrTxn"
outer-join="auto"
/>
<!-- bi-directional one-to-many association to InvtxnDet -->

<set
name="invtxnDets"
lazy="true"
inverse="true"
cascade="all"

>
<key>
<column name="IV_ID" />
<column name="IV_DATE" />
</key>

<one-to-many
class="com.capgent.cpt.common.to.InvtxnDet"
/>
</set>
<!-- bi-directional many-to-one association to CstHdr -->
<many-to-one
name="cstHdr"
class="com.capgent.cpt.common.to.CstHdr"
not-null="true"
>
<column name="CS_ID" />
</many-to-one>

</class>
</hibernate-mapping>


Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:
Hibernate: select * from accr_txn
org.hibernate.PropertyAccessException: exception getting property value with CGL
IB (set hibernate.cglib.use_reflection_optimizer=false for more info) getter of
com.capgent.cpt.common.to.InvTxnPK.?
at org.hibernate.tuple.PojoComponentTuplizer.getPropertyValues(Ljava.lan
g.Object;)[Ljava.lang.Object;(PojoComponentTuplizer.java:79)
at org.hibernate.type.ComponentType.getPropertyValues(Ljava.lang.Object;
Lorg.hibernate.EntityMode;)[Ljava.lang.Object;(ComponentType.java:307)
at org.hibernate.type.ComponentType.getHashCode(Ljava.lang.Object;Lorg.h
ibernate.EntityMode;Lorg.hibernate.engine.SessionFactoryImplementor;)I(Component
Type.java:158)
at org.hibernate.engine.EntityKey.getHashCode()I(EntityKey.java:69)
at org.hibernate.engine.EntityKey.<init>(Ljava.io.Serializable;Lorg.hibe
rnate.persister.entity.EntityPersister;Lorg.hibernate.EntityMode;)V(EntityKey.ja
va:42)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(Lorg.hibernat
e.event.LoadEvent;Lorg.hibernate.event.LoadEventListener$LoadType;)V(DefaultLoad
EventListener.java:76)
at org.hibernate.impl.SessionImpl.fireLoad(Lorg.hibernate.event.LoadEven
t;Lorg.hibernate.event.LoadEventListener$LoadType;)V(SessionImpl.java:891)
at org.hibernate.impl.SessionImpl.internalLoad(Ljava.lang.String;Ljava.i
o.Serializable;ZZ)Ljava.lang.Object;(SessionImpl.java:859)
at org.hibernate.type.EntityType.resolveIdentifier(Ljava.io.Serializable
;Lorg.hibernate.engine.SessionImplementor;)Ljava.lang.Object;(EntityType.java:26
6)
at org.hibernate.type.EntityType.resolve(Ljava.lang.Object;Lorg.hibernat
e.engine.SessionImplementor;Ljava.lang.Object;)Ljava.lang.Object;(EntityType.jav
a:303)
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(Ljava.lang.Object;
ZLorg.hibernate.engine.SessionImplementor;Lorg.hibernate.event.PreLoadEvent;Lorg
.hibernate.event.PostLoadEvent;)V(TwoPhaseLoad.java:113)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Ljava.ut
il.List;Ljava.lang.Object;Lorg.hibernate.engine.SessionImplementor;Z)V(Loader.ja
va:842)
at org.hibernate.loader.Loader.doQuery(Lorg.hibernate.engine.SessionImpl
ementor;Lorg.hibernate.engine.QueryParameters;Z)Ljava.util.List;(Loader.java:717
)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Lo
rg.hibernate.engine.SessionImplementor;Lorg.hibernate.engine.QueryParameters;Z)L
java.util.List;(Loader.java:224)
at org.hibernate.loader.Loader.doList(Lorg.hibernate.engine.SessionImple
mentor;Lorg.hibernate.engine.QueryParameters;)Ljava.util.List;(Loader.java:2145)

at org.hibernate.loader.Loader.listIgnoreQueryCache(Lorg.hibernate.engin
e.SessionImplementor;Lorg.hibernate.engine.QueryParameters;)Ljava.util.List;(Loa
der.java:2029)
at org.hibernate.loader.Loader.list(Lorg.hibernate.engine.SessionImpleme
ntor;Lorg.hibernate.engine.QueryParameters;Ljava.util.Set;[Lorg.hibernate.type.T
ype;)Ljava.util.List;(Loader.java:2024)
at org.hibernate.loader.custom.CustomLoader.list(Lorg.hibernate.engine.S
essionImplementor;Lorg.hibernate.engine.QueryParameters;)Ljava.util.List;(Custom
Loader.java:111)
at org.hibernate.impl.SessionImpl.listCustomQuery(Lorg.hibernate.loader.
custom.CustomQuery;Lorg.hibernate.engine.QueryParameters;)Ljava.util.List;(Sessi
onImpl.java:1674)
at org.hibernate.impl.AbstractSessionImpl.list(Lorg.hibernate.engine.que
ry.NativeSQLQuerySpecification;Lorg.hibernate.engine.QueryParameters;)Ljava.util
.List;(AbstractSessionImpl.java:147)
at org.hibernate.impl.SQLQueryImpl.list()Ljava.util.List;(SQLQueryImpl.j
ava:164)
at com.capgent.cpt.service.database.utils.HibernateDatabaseCalls.findAll
(Ljava.lang.String;Ljava.lang.Class;)Ljava.util.List;(HibernateDatabaseCalls.jav
a:153)
at com.capgent.cpt.ar.dao.AccountsReceivablesDAOImpl.findAll()Ljava.util
.List;(AccountsReceivablesDAOImpl.java:172)
at com.capgent.cpt.ar.ejb.AccountsReceivablesEJB.listReceivablesTxn()Lja
va.util.List;(AccountsReceivablesEJB.java:212)
at com.capgent.cpt.ar.ejb.AccountsReceivablesEJB_mfznfc_EOImpl.listRecei
vablesTxn()Ljava.util.List;(AccountsReceivablesEJB_mfznfc_EOImpl.java:316)
at com.capgent.cpt.ar.ejb.AccountsReceivablesEJB_mfznfc_EOImpl_CBV.listR
eceivablesTxn()Ljava.util.List;(Unknown Source)
at com.capgent.cpt.web.ar.servlet.ArEntryServlet.doPost(Ljavax.servlet.h
ttp.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ArEntryServlet
.java:66)
at com.capgent.cpt.web.ar.servlet.ArEntryServlet.doGet(Ljavax.servlet.ht
tp.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ArEntryServlet.
java:48)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServle
tRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;
Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
()Ljava.lang.Object;(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servle
t.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.Filte
rChainImpl;)V(ServletStubImpl.java:419)
Caused by: java.lang.ClassCastException: com.capgent.cpt.common.to.AccrTxnPK
at com.capgent.cpt.common.to.InvTxnPK$$BulkBeanByCGLIB$$bc79e116.getProp
ertyValues(Ljava.lang.Object;[Ljava.lang.Object;)V(<generated>:???)
at net.sf.cglib.beans.BulkBean.getPropertyValues(Ljava.lang.Object;)[Lja
va.lang.Object;(BulkBean.java:48)
at org.hibernate.tuple.PojoComponentTuplizer.getPropertyValues(Ljava.lan
g.Object;)[Ljava.lang.Object;(PojoComponentTuplizer.java:76)
at org.hibernate.type.ComponentType.getPropertyValues(Ljava.lang.Object;
Lorg.hibernate.EntityMode;)[Ljava.lang.Object;(ComponentType.java:307)
at org.hibernate.type.ComponentType.getHashCode(Ljava.lang.Object;Lorg.h
ibernate.EntityMode;Lorg.hibernate.engine.SessionFactoryImplementor;)I(Component
Type.java:158)
at org.hibernate.engine.EntityKey.getHashCode()I(EntityKey.java:69)
at org.hibernate.engine.EntityKey.<init>(Ljava.io.Serializable;Lorg.hibe
rnate.persister.entity.EntityPersister;Lorg.hibernate.EntityMode;)V(EntityKey.ja
va:42)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(Lorg.hibernat
e.event.LoadEvent;Lorg.hibernate.event.LoadEventListener$LoadType;)V(DefaultLoad
EventListener.java:76)
at org.hibernate.impl.SessionImpl.fireLoad(Lorg.hibernate.event.LoadEven
t;Lorg.hibernate.event.LoadEventListener$LoadType;)V(SessionImpl.java:891)
at org.hibernate.impl.SessionImpl.internalLoad(Ljava.lang.String;Ljava.i
o.Serializable;ZZ)Ljava.lang.Object;(SessionImpl.java:859)
at org.hibernate.type.EntityType.resolveIdentifier(Ljava.io.Serializable
;Lorg.hibernate.engine.SessionImplementor;)Ljava.lang.Object;(EntityType.java:26
6)
at org.hibernate.type.EntityType.resolve(Ljava.lang.Object;Lorg.hibernat
e.engine.SessionImplementor;Ljava.lang.Object;)Ljava.lang.Object;(EntityType.jav
a:303)
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(Ljava.lang.Object;
ZLorg.hibernate.engine.SessionImplementor;Lorg.hibernate.event.PreLoadEvent;Lorg
.hibernate.event.PostLoadEvent;)V(TwoPhaseLoad.java:113)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Ljava.ut
il.List;Ljava.lang.Object;Lorg.hibernate.engine.SessionImplementor;Z)V(Loader.ja
va:842)
at org.hibernate.loader.Loader.doQuery(Lorg.hibernate.engine.SessionImpl
ementor;Lorg.hibernate.engine.QueryParameters;Z)Ljava.util.List;(Loader.java:717
)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Lo
rg.hibernate.engine.SessionImplementor;Lorg.hibernate.engine.QueryParameters;Z)L
java.util.List;(Loader.java:224)
at org.hibernate.loader.Loader.doList(Lorg.hibernate.engine.SessionImple
mentor;Lorg.hibernate.engine.QueryParameters;)Ljava.util.List;(Loader.java:2145)

at org.hibernate.loader.Loader.listIgnoreQueryCache(Lorg.hibernate.engin
e.SessionImplementor;Lorg.hibernate.engine.QueryParameters;)Ljava.util.List;(Loa
der.java:2029)
at org.hibernate.loader.Loader.list(Lorg.hibernate.engine.SessionImpleme
ntor;Lorg.hibernate.engine.QueryParameters;Ljava.util.Set;[Lorg.hibernate.type.T
ype;)Ljava.util.List;(Loader.java:2024)
at org.hibernate.loader.custom.CustomLoader.list(Lorg.hibernate.engine.S
essionImplementor;Lorg.hibernate.engine.QueryParameters;)Ljava.util.List;(Custom
Loader.java:111)
at org.hibernate.impl.SessionImpl.listCustomQuery(Lorg.hibernate.loader.
custom.CustomQuery;Lorg.hibernate.engine.QueryParameters;)Ljava.util.List;(Sessi
onImpl.java:1674)
at org.hibernate.impl.AbstractSessionImpl.list(Lorg.hibernate.engine.que
ry.NativeSQLQuerySpecification;Lorg.hibernate.engine.QueryParameters;)Ljava.util
.List;(AbstractSessionImpl.java:147)
at org.hibernate.impl.SQLQueryImpl.list()Ljava.util.List;(SQLQueryImpl.j
ava:164)
at com.capgent.cpt.service.database.utils.HibernateDatabaseCalls.findAll
(Ljava.lang.String;Ljava.lang.Class;)Ljava.util.List;(HibernateDatabaseCalls.jav
a:153)
at com.capgent.cpt.ar.dao.AccountsReceivablesDAOImpl.findAll()Ljava.util
.List;(AccountsReceivablesDAOImpl.java:172)
at com.capgent.cpt.ar.ejb.AccountsReceivablesEJB.listReceivablesTxn()Lja
va.util.List;(AccountsReceivablesEJB.java:212)
at com.capgent.cpt.ar.ejb.AccountsReceivablesEJB_mfznfc_EOImpl.listRecei
vablesTxn()Ljava.util.List;(AccountsReceivablesEJB_mfznfc_EOImpl.java:316)
at com.capgent.cpt.ar.ejb.AccountsReceivablesEJB_mfznfc_EOImpl_CBV.listR
eceivablesTxn()Ljava.util.List;(Unknown Source)
at com.capgent.cpt.web.ar.servlet.ArEntryServlet.doPost(Ljavax.servlet.h
ttp.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ArEntryServlet
.java:66)
at com.capgent.cpt.web.ar.servlet.ArEntryServlet.doGet(Ljavax.servlet.ht
tp.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ArEntryServlet.
java:48)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServle
tRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;
Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853)
com.capgent.cpt.ar.exceptions.ArDaoSysException: com.capgent.cpt.ar.exceptions.A
rDaoSysException:
caused by exception getting property value with CGLIB (set hibernate.cglib.use_r
eflection_optimizer=false for more info) getter of com.capgent.cpt.common.to.Inv
TxnPK.?
at com.capgent.cpt.ar.dao.AccountsReceivablesDAOImpl.findAll()Ljava.util
.List;(AccountsReceivablesDAOImpl.java:179)
at com.capgent.cpt.ar.ejb.AccountsReceivablesEJB.listReceivablesTxn()Lja
va.util.List;(AccountsReceivablesEJB.java:212)
at com.capgent.cpt.ar.ejb.AccountsReceivablesEJB_mfznfc_EOImpl.listRecei
vablesTxn()Ljava.util.List;(AccountsReceivablesEJB_mfznfc_EOImpl.java:316)
at com.capgent.cpt.ar.ejb.AccountsReceivablesEJB_mfznfc_EOImpl_CBV.listR
eceivablesTxn()Ljava.util.List;(Unknown Source)
at com.capgent.cpt.web.ar.servlet.ArEntryServlet.doPost(Ljavax.servlet.h
ttp.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ArEntryServlet
.java:66)
at com.capgent.cpt.web.ar.servlet.ArEntryServlet.doGet(Ljavax.servlet.ht
tp.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ArEntryServlet.
java:48)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServle
tRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;
Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
()Ljava.lang.Object;(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servle
t.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.Filte
rChainImpl;)V(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servle
t.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:315)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run()Ljava.lang.Object;(WebAppServletContext.java:6718)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.se
curity.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Objec
t;(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.ac
l.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSub
ject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:12
1)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogi
c.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponse
Impl;)V(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel
.ExecuteThread;)V(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest
;)V(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Sourc
e)
Caused by: org.hibernate.PropertyAccessException: exception getting property val
ue with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info)
getter of com.capgent.cpt.common.to.InvTxnPK.?
at org.hibernate.tuple.PojoComponentTuplizer.getPropertyValues(Ljava.lan
g.Object;)[Ljava.lang.Object;(PojoComponentTuplizer.java:79)
at org.hibernate.type.ComponentType.getPropertyValues(Ljava.lang.Object;
Lorg.hibernate.EntityMode;)[Ljava.lang.Object;(ComponentType.java:307)
at org.hibernate.type.ComponentType.getHashCode(Ljava.lang.Object;Lorg.h
ibernate.EntityMode;Lorg.hibernate.engine.SessionFactoryImplementor;)I(Component
Type.java:158)
at org.hibernate.engine.EntityKey.getHashCode()I(EntityKey.java:69)
at org.hibernate.engine.EntityKey.<init>(Ljava.io.Serializable;Lorg.hibe
rnate.persister.entity.EntityPersister;Lorg.hibernate.EntityMode;)V(EntityKey.ja
va:42)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(Lorg.hibernat
e.event.LoadEvent;Lorg.hibernate.event.LoadEventListener$LoadType;)V(DefaultLoad
EventListener.java:76)
at org.hibernate.impl.SessionImpl.fireLoad(Lorg.hibernate.event.LoadEven
t;Lorg.hibernate.event.LoadEventListener$LoadType;)V(SessionImpl.java:891)
at org.hibernate.impl.SessionImpl.internalLoad(Ljava.lang.String;Ljava.i
o.Serializable;ZZ)Ljava.lang.Object;(SessionImpl.java:859)
at org.hibernate.type.EntityType.resolveIdentifier(Ljava.io.Serializable
;Lorg.hibernate.engine.SessionImplementor;)Ljava.lang.Object;(EntityType.java:26
6)
at org.hibernate.type.EntityType.resolve(Ljava.lang.Object;Lorg.hibernat
e.engine.SessionImplementor;Ljava.lang.Object;)Ljava.lang.Object;(EntityType.jav
a:303)
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(Ljava.lang.Object;
ZLorg.hibernate.engine.SessionImplementor;Lorg.hibernate.event.PreLoadEvent;Lorg
.hibernate.event.PostLoadEvent;)V(TwoPhaseLoad.java:113)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Ljava.ut
il.List;Ljava.lang.Object;Lorg.hibernate.engine.SessionImplementor;Z)V(Loader.ja
va:842)
at org.hibernate.loader.Loader.doQuery(Lorg.hibernate.engine.SessionImpl
ementor;Lorg.hibernate.engine.QueryParameters;Z)Ljava.util.List;(Loader.java:717
)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Lo
rg.hibernate.engine.SessionImplementor;Lorg.hibernate.engine.QueryParameters;Z)L
java.util.List;(Loader.java:224)
at org.hibernate.loader.Loader.doList(Lorg.hibernate.engine.SessionImple
mentor;Lorg.hibernate.engine.QueryParameters;)Ljava.util.List;(Loader.java:2145)

at org.hibernate.loader.Loader.listIgnoreQueryCache(Lorg.hibernate.engin
e.SessionImplementor;Lorg.hibernate.engine.QueryParameters;)Ljava.util.List;(Loa
der.java:2029)
at org.hibernate.loader.Loader.list(Lorg.hibernate.engine.SessionImpleme
ntor;Lorg.hibernate.engine.QueryParameters;Ljava.util.Set;[Lorg.hibernate.type.T
ype;)Ljava.util.List;(Loader.java:2024)
at org.hibernate.loader.custom.CustomLoader.list(Lorg.hibernate.engine.S
essionImplementor;Lorg.hibernate.engine.QueryParameters;)Ljava.util.List;(Custom
Loader.java:111)
at org.hibernate.impl.SessionImpl.listCustomQuery(Lorg.hibernate.loader.
custom.CustomQuery;Lorg.hibernate.engine.QueryParameters;)Ljava.util.List;(Sessi
onImpl.java:1674)
at org.hibernate.impl.AbstractSessionImpl.list(Lorg.hibernate.engine.que
ry.NativeSQLQuerySpecification;Lorg.hibernate.engine.QueryParameters;)Ljava.util
.List;(AbstractSessionImpl.java:147)
at org.hibernate.impl.SQLQueryImpl.list()Ljava.util.List;(SQLQueryImpl.j
ava:164)
at com.capgent.cpt.service.database.utils.HibernateDatabaseCalls.findAll
(Ljava.lang.String;Ljava.lang.Class;)Ljava.util.List;(HibernateDatabaseCalls.jav
a:153)
at com.capgent.cpt.ar.dao.AccountsReceivablesDAOImpl.findAll()Ljava.util
.List;(AccountsReceivablesDAOImpl.java:172)
at com.capgent.cpt.ar.ejb.AccountsReceivablesEJB.listReceivablesTxn()Lja
va.util.List;(AccountsReceivablesEJB.java:212)
at com.capgent.cpt.ar.ejb.AccountsReceivablesEJB_mfznfc_EOImpl.listRecei
vablesTxn()Ljava.util.List;(AccountsReceivablesEJB_mfznfc_EOImpl.java:316)
at com.capgent.cpt.ar.ejb.AccountsReceivablesEJB_mfznfc_EOImpl_CBV.listR
eceivablesTxn()Ljava.util.List;(Unknown Source)
at com.capgent.cpt.web.ar.servlet.ArEntryServlet.doPost(Ljavax.servlet.h
ttp.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ArEntryServlet
.java:66)
at com.capgent.cpt.web.ar.servlet.ArEntryServlet.doGet(Ljavax.servlet.ht
tp.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ArEntryServlet.
java:48)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServle
tRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;
Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
()Ljava.lang.Object;(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servle
t.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.Filte
rChainImpl;)V(ServletStubImpl.java:419)
Caused by: java.lang.ClassCastException: com.capgent.cpt.common.to.AccrTxnPK
at com.capgent.cpt.common.to.InvTxnPK$$BulkBeanByCGLIB$$bc79e116.getProp
ertyValues(Ljava.lang.Object;[Ljava.lang.Object;)V(<generated>:???)
at net.sf.cglib.beans.BulkBean.getPropertyValues(Ljava.lang.Object;)[Lja
va.lang.Object;(BulkBean.java:48)
at org.hibernate.tuple.PojoComponentTuplizer.getPropertyValues(Ljava.lan
g.Object;)[Ljava.lang.Object;(PojoComponentTuplizer.java:76)
at org.hibernate.type.ComponentType.getPropertyValues(Ljava.lang.Object;
Lorg.hibernate.EntityMode;)[Ljava.lang.Object;(ComponentType.java:307)
at org.hibernate.type.ComponentType.getHashCode(Ljava.lang.Object;Lorg.h
ibernate.EntityMode;Lorg.hibernate.engine.SessionFactoryImplementor;)I(Component
Type.java:158)
at org.hibernate.engine.EntityKey.getHashCode()I(EntityKey.java:69)
at org.hibernate.engine.EntityKey.<init>(Ljava.io.Serializable;Lorg.hibe
rnate.persister.entity.EntityPersister;Lorg.hibernate.EntityMode;)V(EntityKey.ja
va:42)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(Lorg.hibernat
e.event.LoadEvent;Lorg.hibernate.event.LoadEventListener$LoadType;)V(DefaultLoad
EventListener.java:76)
at org.hibernate.impl.SessionImpl.fireLoad(Lorg.hibernate.event.LoadEven
t;Lorg.hibernate.event.LoadEventListener$LoadType;)V(SessionImpl.java:891)
at org.hibernate.impl.SessionImpl.internalLoad(Ljava.lang.String;Ljava.i
o.Serializable;ZZ)Ljava.lang.Object;(SessionImpl.java:859)
at org.hibernate.type.EntityType.resolveIdentifier(Ljava.io.Serializable
;Lorg.hibernate.engine.SessionImplementor;)Ljava.lang.Object;(EntityType.java:26
6)
at org.hibernate.type.EntityType.resolve(Ljava.lang.Object;Lorg.hibernat
e.engine.SessionImplementor;Ljava.lang.Object;)Ljava.lang.Object;(EntityType.jav
a:303)
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(Ljava.lang.Object;
ZLorg.hibernate.engine.SessionImplementor;Lorg.hibernate.event.PreLoadEvent;Lorg
.hibernate.event.PostLoadEvent;)V(TwoPhaseLoad.java:113)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Ljava.ut
il.List;Ljava.lang.Object;Lorg.hibernate.engine.SessionImplementor;Z)V(Loader.ja
va:842)
at org.hibernate.loader.Loader.doQuery(Lorg.hibernate.engine.SessionImpl
ementor;Lorg.hibernate.engine.QueryParameters;Z)Ljava.util.List;(Loader.java:717
)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Lo
rg.hibernate.engine.SessionImplementor;Lorg.hibernate.engine.QueryParameters;Z)L
java.util.List;(Loader.java:224)
at org.hibernate.loader.Loader.doList(Lorg.hibernate.engine.SessionImple
mentor;Lorg.hibernate.engine.QueryParameters;)Ljava.util.List;(Loader.java:2145)

at org.hibernate.loader.Loader.listIgnoreQueryCache(Lorg.hibernate.engin
e.SessionImplementor;Lorg.hibernate.engine.QueryParameters;)Ljava.util.List;(Loa
der.java:2029)
at org.hibernate.loader.Loader.list(Lorg.hibernate.engine.SessionImpleme
ntor;Lorg.hibernate.engine.QueryParameters;Ljava.util.Set;[Lorg.hibernate.type.T
ype;)Ljava.util.List;(Loader.java:2024)
at org.hibernate.loader.custom.CustomLoader.list(Lorg.hibernate.engine.S
essionImplementor;Lorg.hibernate.engine.QueryParameters;)Ljava.util.List;(Custom
Loader.java:111)
at org.hibernate.impl.SessionImpl.listCustomQuery(Lorg.hibernate.loader.
custom.CustomQuery;Lorg.hibernate.engine.QueryParameters;)Ljava.util.List;(Sessi
onImpl.java:1674)
at org.hibernate.impl.AbstractSessionImpl.list(Lorg.hibernate.engine.que
ry.NativeSQLQuerySpecification;Lorg.hibernate.engine.QueryParameters;)Ljava.util
.List;(AbstractSessionImpl.java:147)
at org.hibernate.impl.SQLQueryImpl.list()Ljava.util.List;(SQLQueryImpl.j
ava:164)
at com.capgent.cpt.service.database.utils.HibernateDatabaseCalls.findAll
(Ljava.lang.String;Ljava.lang.Class;)Ljava.util.List;(HibernateDatabaseCalls.jav
a:153)
at com.capgent.cpt.ar.dao.AccountsReceivablesDAOImpl.findAll()Ljava.util
.List;(AccountsReceivablesDAOImpl.java:172)
at com.capgent.cpt.ar.ejb.AccountsReceivablesEJB.listReceivablesTxn()Lja
va.util.List;(AccountsReceivablesEJB.java:212)
at com.capgent.cpt.ar.ejb.AccountsReceivablesEJB_mfznfc_EOImpl.listRecei
vablesTxn()Ljava.util.List;(AccountsReceivablesEJB_mfznfc_EOImpl.java:316)
at com.capgent.cpt.ar.ejb.AccountsReceivablesEJB_mfznfc_EOImpl_CBV.listR
eceivablesTxn()Ljava.util.List;(Unknown Source)
at com.capgent.cpt.web.ar.servlet.ArEntryServlet.doPost(Ljavax.servlet.h
ttp.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ArEntryServlet
.java:66)
at com.capgent.cpt.web.ar.servlet.ArEntryServlet.doGet(Ljavax.servlet.ht
tp.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ArEntryServlet.
java:48)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServle
tRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;
Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853)

Name and version of the database you are using:
Oracle 9i
The generated SQL (show_sql=true):
Using sql instead of HSQL
Debug level Hibernate log excerpt:


Problems with Session and transaction handling?

Read this: http://hibernate.org/42.html

Code:
AccrTxn

package com.capgent.cpt.common.to;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class AccrTxn implements Serializable {

/** identifier field */
private com.capgent.cpt.common.to.AccrTxnPK comp_id;

/** persistent field */
private String sbId;

/** persistent field */
private Date arBthdte;

/** nullable persistent field */
private String arPayr;

/** nullable persistent field */
private String arInvvns;

/** nullable persistent field */
private String arInvvno;

/** nullable persistent field */
private String arDesc;

/** nullable persistent field */
private String arSlsprn;

/** nullable persistent field */
private String arCusgrp;

/** nullable persistent field */
private Integer arXchrtpe;

/** nullable persistent field */
private BigDecimal arXchrte;

/** nullable persistent field */
private BigDecimal arFcuramt;

/** nullable persistent field */
private BigDecimal arVatamt;

/** nullable persistent field */
private String arChgtpe;

/** nullable persistent field */
private Integer arMrkup;

/** nullable persistent field */
private Date arFwudte;

/** nullable persistent field */
private Date arAccdte;

/** nullable persistent field */
private String accCode;

/** nullable persistent field */
private Integer arBank;

/** nullable persistent field */
private Integer arCdsct;

/** nullable persistent field */
private String arPytmtd;

/** nullable persistent field */
private Integer arReccde;

/** nullable persistent field */
private Date arRecdte;

/** nullable persistent field */
private String arAdvcde;

/** nullable persistent field */
private Integer arPyrem;

/** nullable persistent field */
private Date arLremdte;

/** nullable persistent field */
private Date arPtremdte;

/** nullable persistent field */
private String arStpby;

/** nullable persistent field */
private Date arStpdte;

/** nullable persistent field */
private Integer arNopytrm;

/** nullable persistent field */
private Integer arIntinvb;

/** nullable persistent field */
private Integer arIntinvs;

/** nullable persistent field */
private BigDecimal arCintamt;

/** nullable persistent field */
private Integer arFlgcde;

/** nullable persistent field */
private Date arGpindte;

/** nullable persistent field */
private String arTxt;

/** nullable persistent field */
private String arDoclnk;

/** nullable persistent field */
private Integer arDrtprd;

/** nullable persistent field */
private Date arDrprdte;

/** nullable persistent field */
private String arProdgrp;

/** nullable persistent field */
private String arOrdno;

/** nullable persistent field */
private Date arTxndte;

/** nullable persistent field */
private String arFrttrm;

/** nullable persistent field */
private String arNbr;

/** nullable persistent field */
private Integer arPrint;

/** persistent field */
private String arCrtdby;

/** nullable persistent field */
private String arModby;

/** persistent field */
private Date arCrtddt;

/** nullable persistent field */
private Date arModdt;

/** nullable persistent field */
private Integer enId;

/** nullable persistent field */
private Integer steId;

/** nullable persistent field */
private com.capgent.cpt.common.to.InvTxn invTxn;

/** persistent field */
private com.capgent.cpt.common.to.StsHdr stsHdr;

/** persistent field */
private com.capgent.cpt.common.to.PytHdr pytHdr;

/** persistent field */
private com.capgent.cpt.common.to.PrtyHdr prtyHdr;

/** full constructor */
public AccrTxn(com.capgent.cpt.common.to.AccrTxnPK comp_id, String sbId, Date arBthdte, String arPayr, String arInvvns, String arInvvno, String arDesc, String arSlsprn, String arCusgrp, Integer arXchrtpe, BigDecimal arXchrte, BigDecimal arFcuramt, BigDecimal arVatamt, String arChgtpe, Integer arMrkup, Date arFwudte, Date arAccdte, String accCode, Integer arBank, Integer arCdsct, String arPytmtd, Integer arReccde, Date arRecdte, String arAdvcde, Integer arPyrem, Date arLremdte, Date arPtremdte, String arStpby, Date arStpdte, Integer arNopytrm, Integer arIntinvb, Integer arIntinvs, BigDecimal arCintamt, Integer arFlgcde, Date arGpindte, String arTxt, String arDoclnk, Integer arDrtprd, Date arDrprdte, String arProdgrp, String arOrdno, Date arTxndte, String arFrttrm, String arNbr, Integer arPrint, String arCrtdby, String arModby, Date arCrtddt, Date arModdt, Integer enId, Integer steId, com.capgent.cpt.common.to.InvTxn invTxn, com.capgent.cpt.common.to.StsHdr stsHdr, com.capgent.cpt.common.to.PytHdr pytHdr, com.capgent.cpt.common.to.PrtyHdr prtyHdr) {
this.comp_id = comp_id;
this.sbId = sbId;
this.arBthdte = arBthdte;
this.arPayr = arPayr;
this.arInvvns = arInvvns;
this.arInvvno = arInvvno;
this.arDesc = arDesc;
this.arSlsprn = arSlsprn;
this.arCusgrp = arCusgrp;
this.arXchrtpe = arXchrtpe;
this.arXchrte = arXchrte;
this.arFcuramt = arFcuramt;
this.arVatamt = arVatamt;
this.arChgtpe = arChgtpe;
this.arMrkup = arMrkup;
this.arFwudte = arFwudte;
this.arAccdte = arAccdte;
this.accCode = accCode;
this.arBank = arBank;
this.arCdsct = arCdsct;
this.arPytmtd = arPytmtd;
this.arReccde = arReccde;
this.arRecdte = arRecdte;
this.arAdvcde = arAdvcde;
this.arPyrem = arPyrem;
this.arLremdte = arLremdte;
this.arPtremdte = arPtremdte;
this.arStpby = arStpby;
this.arStpdte = arStpdte;
this.arNopytrm = arNopytrm;
this.arIntinvb = arIntinvb;
this.arIntinvs = arIntinvs;
this.arCintamt = arCintamt;
this.arFlgcde = arFlgcde;
this.arGpindte = arGpindte;
this.arTxt = arTxt;
this.arDoclnk = arDoclnk;
this.arDrtprd = arDrtprd;
this.arDrprdte = arDrprdte;
this.arProdgrp = arProdgrp;
this.arOrdno = arOrdno;
this.arTxndte = arTxndte;
this.arFrttrm = arFrttrm;
this.arNbr = arNbr;
this.arPrint = arPrint;
this.arCrtdby = arCrtdby;
this.arModby = arModby;
this.arCrtddt = arCrtddt;
this.arModdt = arModdt;
this.enId = enId;
this.steId = steId;
this.invTxn = invTxn;
this.stsHdr = stsHdr;
this.pytHdr = pytHdr;
this.prtyHdr = prtyHdr;
}

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

/** minimal constructor */
public AccrTxn(com.capgent.cpt.common.to.AccrTxnPK comp_id, String sbId, Date arBthdte, String arCrtdby, Date arCrtddt, com.capgent.cpt.common.to.StsHdr stsHdr, com.capgent.cpt.common.to.PytHdr pytHdr, com.capgent.cpt.common.to.PrtyHdr prtyHdr) {
this.comp_id = comp_id;
this.sbId = sbId;
this.arBthdte = arBthdte;
this.arCrtdby = arCrtdby;
this.arCrtddt = arCrtddt;
this.stsHdr = stsHdr;
this.pytHdr = pytHdr;
this.prtyHdr = prtyHdr;
}

public com.capgent.cpt.common.to.AccrTxnPK getComp_id() {
return this.comp_id;
}

public void setComp_id(com.capgent.cpt.common.to.AccrTxnPK comp_id) {
this.comp_id = comp_id;
}

public String getSbId() {
return this.sbId;
}

public void setSbId(String sbId) {
this.sbId = sbId;
}

public Date getArBthdte() {
return this.arBthdte;
}

public void setArBthdte(Date arBthdte) {
this.arBthdte = arBthdte;
}

public String getArPayr() {
return this.arPayr;
}

public void setArPayr(String arPayr) {
this.arPayr = arPayr;
}

public String getArInvvns() {
return this.arInvvns;
}

public void setArInvvns(String arInvvns) {
this.arInvvns = arInvvns;
}

public String getArInvvno() {
return this.arInvvno;
}

public void setArInvvno(String arInvvno) {
this.arInvvno = arInvvno;
}

public String getArDesc() {
return this.arDesc;
}

public void setArDesc(String arDesc) {
this.arDesc = arDesc;
}

public String getArSlsprn() {
return this.arSlsprn;
}

public void setArSlsprn(String arSlsprn) {
this.arSlsprn = arSlsprn;
}

public String getArCusgrp() {
return this.arCusgrp;
}

public void setArCusgrp(String arCusgrp) {
this.arCusgrp = arCusgrp;
}

public Integer getArXchrtpe() {
return this.arXchrtpe;
}

public void setArXchrtpe(Integer arXchrtpe) {
this.arXchrtpe = arXchrtpe;
}

public BigDecimal getArXchrte() {
return this.arXchrte;
}

public void setArXchrte(BigDecimal arXchrte) {
this.arXchrte = arXchrte;
}

public BigDecimal getArFcuramt() {
return this.arFcuramt;
}

public void setArFcuramt(BigDecimal arFcuramt) {
this.arFcuramt = arFcuramt;
}

public BigDecimal getArVatamt() {
return this.arVatamt;
}

public void setArVatamt(BigDecimal arVatamt) {
this.arVatamt = arVatamt;
}

public String getArChgtpe() {
return this.arChgtpe;
}

public void setArChgtpe(String arChgtpe) {
this.arChgtpe = arChgtpe;
}

public Integer getArMrkup() {
return this.arMrkup;
}

public void setArMrkup(Integer arMrkup) {
this.arMrkup = arMrkup;
}

public Date getArFwudte() {
return this.arFwudte;
}

public void setArFwudte(Date arFwudte) {
this.arFwudte = arFwudte;
}

public Date getArAccdte() {
return this.arAccdte;
}

public void setArAccdte(Date arAccdte) {
this.arAccdte = arAccdte;
}

public String getAccCode() {
return this.accCode;
}

public void setAccCode(String accCode) {
this.accCode = accCode;
}

public Integer getArBank() {
return this.arBank;
}

public void setArBank(Integer arBank) {
this.arBank = arBank;
}

public Integer getArCdsct() {
return this.arCdsct;
}

public void setArCdsct(Integer arCdsct) {
this.arCdsct = arCdsct;
}

public String getArPytmtd() {
return this.arPytmtd;
}

public void setArPytmtd(String arPytmtd) {
this.arPytmtd = arPytmtd;
}

public Integer getArReccde() {
return this.arReccde;
}

public void setArReccde(Integer arReccde) {
this.arReccde = arReccde;
}

public Date getArRecdte() {
return this.arRecdte;
}

public void setArRecdte(Date arRecdte) {
this.arRecdte = arRecdte;
}

public String getArAdvcde() {
return this.arAdvcde;
}

public void setArAdvcde(String arAdvcde) {
this.arAdvcde = arAdvcde;
}

public Integer getArPyrem() {
return this.arPyrem;
}

public void setArPyrem(Integer arPyrem) {
this.arPyrem = arPyrem;
}

public Date getArLremdte() {
return this.arLremdte;
}

public void setArLremdte(Date arLremdte) {
this.arLremdte = arLremdte;
}

public Date getArPtremdte() {
return this.arPtremdte;
}

public void setArPtremdte(Date arPtremdte) {
this.arPtremdte = arPtremdte;
}

public String getArStpby() {
return this.arStpby;
}

public void setArStpby(String arStpby) {
this.arStpby = arStpby;
}

public Date getArStpdte() {
return this.arStpdte;
}

public void setArStpdte(Date arStpdte) {
this.arStpdte = arStpdte;
}

public Integer getArNopytrm() {
return this.arNopytrm;
}

public void setArNopytrm(Integer arNopytrm) {
this.arNopytrm = arNopytrm;
}

public Integer getArIntinvb() {
return this.arIntinvb;
}

public void setArIntinvb(Integer arIntinvb) {
this.arIntinvb = arIntinvb;
}

public Integer getArIntinvs() {
return this.arIntinvs;
}

public void setArIntinvs(Integer arIntinvs) {
this.arIntinvs = arIntinvs;
}

public BigDecimal getArCintamt() {
return this.arCintamt;
}

public void setArCintamt(BigDecimal arCintamt) {
this.arCintamt = arCintamt;
}

public Integer getArFlgcde() {
return this.arFlgcde;
}

public void setArFlgcde(Integer arFlgcde) {
this.arFlgcde = arFlgcde;
}

public Date getArGpindte() {
return this.arGpindte;
}

public void setArGpindte(Date arGpindte) {
this.arGpindte = arGpindte;
}

public String getArTxt() {
return this.arTxt;
}

public void setArTxt(String arTxt) {
this.arTxt = arTxt;
}

public String getArDoclnk() {
return this.arDoclnk;
}

public void setArDoclnk(String arDoclnk) {
this.arDoclnk = arDoclnk;
}

public Integer getArDrtprd() {
return this.arDrtprd;
}

public void setArDrtprd(Integer arDrtprd) {
this.arDrtprd = arDrtprd;
}

public Date getArDrprdte() {
return this.arDrprdte;
}

public void setArDrprdte(Date arDrprdte) {
this.arDrprdte = arDrprdte;
}

public String getArProdgrp() {
return this.arProdgrp;
}

public void setArProdgrp(String arProdgrp) {
this.arProdgrp = arProdgrp;
}

public String getArOrdno() {
return this.arOrdno;
}

public void setArOrdno(String arOrdno) {
this.arOrdno = arOrdno;
}

public Date getArTxndte() {
return this.arTxndte;
}

public void setArTxndte(Date arTxndte) {
this.arTxndte = arTxndte;
}

public String getArFrttrm() {
return this.arFrttrm;
}

public void setArFrttrm(String arFrttrm) {
this.arFrttrm = arFrttrm;
}

public String getArNbr() {
return this.arNbr;
}

public void setArNbr(String arNbr) {
this.arNbr = arNbr;
}

public Integer getArPrint() {
return this.arPrint;
}

public void setArPrint(Integer arPrint) {
this.arPrint = arPrint;
}

public String getArCrtdby() {
return this.arCrtdby;
}

public void setArCrtdby(String arCrtdby) {
this.arCrtdby = arCrtdby;
}

public String getArModby() {
return this.arModby;
}

public void setArModby(String arModby) {
this.arModby = arModby;
}

public Date getArCrtddt() {
return this.arCrtddt;
}

public void setArCrtddt(Date arCrtddt) {
this.arCrtddt = arCrtddt;
}

public Date getArModdt() {
return this.arModdt;
}

public void setArModdt(Date arModdt) {
this.arModdt = arModdt;
}

public Integer getEnId() {
return this.enId;
}

public void setEnId(Integer enId) {
this.enId = enId;
}

public Integer getSteId() {
return this.steId;
}

public void setSteId(Integer steId) {
this.steId = steId;
}

public com.capgent.cpt.common.to.InvTxn getInvTxn() {
return this.invTxn;
}

public void setInvTxn(com.capgent.cpt.common.to.InvTxn invTxn) {
this.invTxn = invTxn;
}

public com.capgent.cpt.common.to.StsHdr getStsHdr() {
return this.stsHdr;
}

public void setStsHdr(com.capgent.cpt.common.to.StsHdr stsHdr) {
this.stsHdr = stsHdr;
}

public com.capgent.cpt.common.to.PytHdr getPytHdr() {
return this.pytHdr;
}

public void setPytHdr(com.capgent.cpt.common.to.PytHdr pytHdr) {
this.pytHdr = pytHdr;
}

public com.capgent.cpt.common.to.PrtyHdr getPrtyHdr() {
return this.prtyHdr;
}

public void setPrtyHdr(com.capgent.cpt.common.to.PrtyHdr prtyHdr) {
this.prtyHdr = prtyHdr;
}

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

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

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

}


Code:
AccrTxnPK

package com.capgent.cpt.common.to;

import java.io.Serializable;
import java.util.Date;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class AccrTxnPK implements Serializable {

/** identifier field */
private String ivId;

/** identifier field */
private Date ivDate;

/** full constructor */
public AccrTxnPK(String ivId, Date ivDate) {
this.ivId = ivId;
this.ivDate = ivDate;
}

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

public String getIvId() {
return this.ivId;
}

public void setIvId(String ivId) {
this.ivId = ivId;
}

public Date getIvDate() {
return this.ivDate;
}

public void setIvDate(Date ivDate) {
this.ivDate = ivDate;
}

public String toString() {
return new ToStringBuilder(this)
.append("ivId", getIvId())
.append("ivDate", getIvDate())
.toString();
}

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

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

}

Code:
InvTxn

package com.capgent.cpt.common.to;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
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;


/** @author Hibernate CodeGenerator */
public class InvTxn implements Serializable {

/** identifier field */
private com.capgent.cpt.common.to.InvTxnPK comp_id;

/** nullable persistent field */
private String ivPinvid;

/** nullable persistent field */
private String ivSbid;

/** nullable persistent field */
private String ivCurr;

/** nullable persistent field */
private BigDecimal ivChgs;

/** nullable persistent field */
private BigDecimal ivTlamt;

/** nullable persistent field */
private Integer ivShpadd;

/** nullable persistent field */
private String ivBlno;

/** nullable persistent field */
private String ivShmode;

/** nullable persistent field */
private String ivCarr;

/** nullable persistent field */
private Integer ivBilladd;

/** nullable persistent field */
private Integer ivCrtrms;

/** nullable persistent field */
private String ivTerms;

/** nullable persistent field */
private String ivAttdtls;

/** nullable persistent field */
private String ivText;

/** nullable persistent field */
private Date ivBtchdte;

/** nullable persistent field */
private BigDecimal ivAdvpaid;

/** nullable persistent field */
private BigDecimal ivAdvadj;

/** nullable persistent field */
private Integer ivPrntd;

/** nullable persistent field */
private String ivMode;

/** nullable persistent field */
private String ivType;

/** nullable persistent field */
private Date ivDuedate;

/** nullable persistent field */
private String ivTariff;

/** nullable persistent field */
private Date ivTxndte;

/** nullable persistent field */
private String ivGpinvno;

/** persistent field */
private String ivCrtdby;

/** nullable persistent field */
private String ivModby;

/** persistent field */
private Date ivCrtddt;

/** nullable persistent field */
private Date ivModdt;

/** nullable persistent field */
private String ivCusno;

/** nullable persistent field */
private Integer enId;

/** nullable persistent field */
private Integer steId;

/** nullable persistent field */
private com.capgent.cpt.common.to.AccrTxn accrTxn;

/** persistent field */
private com.capgent.cpt.common.to.StsHdr stsHdr;

/** persistent field */
private com.capgent.cpt.common.to.CstHdr cstHdr;

/** persistent field */
private Set dispTxns;

/** persistent field */
private Set altLogs;

/** persistent field */
private Set invtxnDets;

/** full constructor */
public InvTxn(com.capgent.cpt.common.to.InvTxnPK comp_id, String ivPinvid, String ivSbid, String ivCurr, BigDecimal ivChgs, BigDecimal ivTlamt, Integer ivShpadd, String ivBlno, String ivShmode, String ivCarr, Integer ivBilladd, Integer ivCrtrms, String ivTerms, String ivAttdtls, String ivText, Date ivBtchdte, BigDecimal ivAdvpaid, BigDecimal ivAdvadj, Integer ivPrntd, String ivMode, String ivType, Date ivDuedate, String ivTariff, Date ivTxndte, String ivGpinvno, String ivCrtdby, String ivModby, Date ivCrtddt, Date ivModdt, String ivCusno, Integer enId, Integer steId, com.capgent.cpt.common.to.AccrTxn accrTxn, com.capgent.cpt.common.to.StsHdr stsHdr, com.capgent.cpt.common.to.CstHdr cstHdr, Set dispTxns, Set altLogs, Set invtxnDets) {
this.comp_id = comp_id;
this.ivPinvid = ivPinvid;
this.ivSbid = ivSbid;


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.