-->
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: HQL in clause for component mapping
PostPosted: Mon Nov 14, 2011 7:48 am 
Newbie

Joined: Mon Nov 14, 2011 7:32 am
Posts: 1
I am executing a simple select HQL query

from CertObjRel where certificatePrimary in (:certificatePrimaryList)
where certificatePrimaryList is a java arrayList of certificatePrimary

CertificatePrimary class:
class CertificatePrimary implements Serializable{
//private int primaryId;
private String certificateId;
private Short trsSequenceNbr;

public String getCertificateId() {
return certificateId;
}

public Short getTrsSequenceNbr() {
return trsSequenceNbr;
}

public void setCertificateId(String certificateId) {
this.certificateId = certificateId;
}

public void setTrsSequenceNbr(Short trsSequenceNbr) {
this.trsSequenceNbr = trsSequenceNbr; }
}

CertObjRelMapping contains CertificatePrimary as component

CertObjRel.hbm.xml

<component name="certificatePrimary" class="com.csc.exceed.certificate.domain.CertificatePrimary">
<property name="certificateId" type="java.lang.String" column="CERT_ID" length="36" not-null="true"/>
<property name="trsSequenceNbr" type="java.lang.Short" column="CERT_TRS_SEQ_NBR" />
</component>

I am getting the following error

DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=(;RT_TRS_SEQ_NBR) in (;<values>, DRIVER=3.50.152 )


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.