-->
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: org.hibernate.HibernateException:
PostPosted: Mon Nov 02, 2009 2:53 am 
Newbie

Joined: Mon Nov 02, 2009 2:33 am
Posts: 1
<class name="ibbl.swift.bean.ProductInfoBean" table="T_PRODUCT_INFO">
<id name="oid" column="OID">
<generator class="assigned"/>
</id>

<property name="productId" column="PRODUCT_ID"/>
<property name="productBillId" column="PRODUCT_BILL_ID"/>
<property name="productNo" column="PRODUCT_NO"/>
<property name="brCode" column="BR_CODE"/>
<property name="productDate" column="PRODUCT_DATE"/>
<property name = "prodType" column="PRODUCT_TYPE"/>
</class>


public class ProductInfoBean
{
private String oid = null;
private String productId = null;
private String productBillId = null;
private String productNo = null;
private String brCode = null;
private Date productDate = null;
private int prodType;

public String getOid()
{
return oid;
}

public void setOid(String oid)
{
this.oid = oid;
}

public String getProductId()
{
return productId;
}

public void setProductId(String productId)
{
this.productId = productId;
}

public String getProductBillId()
{
return productBillId;
}

public void setProductBillId(String productBillId)
{
this.productBillId = productBillId;
}

public String getProductNo()
{
return productNo;
}

public void setProductNo(String productNo)
{
this.productNo = productNo;
}

public String getBrCode()
{
return brCode;
}

public void setBrCode(String brCode)
{
this.brCode = brCode;
}

public Date getProductDate()
{
return productDate;
}

public void setProductDate(Date productDate)
{
this.productDate = productDate;
}

public int getProdType()
{
return prodType;
}

public void setProdType(int prodType)
{
this.prodType = prodType;
}
}

single row add successfully but through exception at multiple row

org.hibernate.HibernateException: identifier of an instance of ibbl.swift.bean.ProductInfoBean was altered from 110009000000 to 110009000004


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.