を失敗し、私の二つのテーブル休止状態 - 外部キークエリが
CREATE TABLE "DBS_P2P"."KW_PAYMENT_IMAGEE_TEST"(IMAGE_KEY INTEGER PRIMARY KEY NOT NULL GENERATED ALWAYS AS IDENTITY ( START WITH +1 INCREMENT BY +1 MINVALUE +1 MAXVALUE +2147483647 NO CYCLE CACHE 20 NO ORDER),REQUEST_ID INTEGER,IMAGE_CONTENT CLOB(5120000),FOREIGN KEY(REQUEST_ID) REFERENCES KW_PAYMENT_LINK_MASTER_TEST(REQUEST_ID))
CREATE TABLE "DBS_P2P"."KW_PAYMENT_IMAGEE_TEST"(IMAGE_KEY INTEGER PRIMARY KEY NOT NULL GENERATED ALWAYS AS IDENTITY ( START WITH +1 INCREMENT BY +1 MINVALUE +1 MAXVALUE +2147483647 NO CYCLE CACHE 20 NO ORDER),REQUEST_ID INTEGER,IMAGE_CONTENT CLOB(5120000),FOREIGN KEY(REQUEST_ID) REFERENCES KW_PAYMENT_LINK_MASTER_TEST(REQUEST_ID))
<hibernate-mapping>
<class name="xyz" table="KW_PAYMENT_LINK_MASTER_TEST" catalog="xyz">
<id name="requestId" type="int">
<column name="REQUEST_ID"/>
<generator class="identity" />
</id>
<property name="referenceWalletId" type="string">
<column name="REFERENCE_ID"/>
</property>
</class>
<hibernate-mapping>
<class name="com.kony.p2p.bo.KwPaymentImagetest" table="KW_PAYMENT_IMAGEE_TEST" catalog="DBS_P2P">
<id name="imageKey" type="int">
<column name="IMAGE_KEY" />
<generator class="identity" />
</id>
<many-to-one name="KwPaymentLinkMastertest" class="com.kony.p2p.bo.KwPaymentLinkMastertest" fetch="select" lazy="false">
<column name="REQUEST_ID" not-null="false" />
</many-to-one>
<property name="imageContent" type="string">
<column name="IMAGE_CONTENT" not-null="false" />
</property>
</class>
<filter-def name="myFilter">
挿入することが、結果を取得することはできませんイムを見つけてください。次のエラーを取得
session.createCriteria(KwPaymentLinkMastertest.class).add(Restrictions.eq("requestId", Integer.parseInt(transactionReferenceNumber))).uniqueResult();
KwPaymentImagetest image = (KwPaymentImagetest) session.createCriteria(KwPaymentImagetest.class).add(Restrictions.eq("kwPaymentLinkMastertest", kwPaymentLinkMastertest)).uniqueResult();
org.hibernate.QueryException:プロパティを解決できませんでした:kwPaymentLinkMastertestがで:com.kony.p2p.bo.KwPaymentImagetest
は