openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prabhat Sharma2 <>
Subject Critical issue (Blocker): missing fields in update statement
Date Tue, 06 Mar 2012 01:07:49 GMT

Hello Team,

We have some problem while updating an entity via entityManager's update
method (generated by RSA8.0.3).

OS: Windows XP
IDE:  IBM Rational® Software Architect for WebSphere Software (Version:
WAS: 6.1

This entity has around 66 fields and  42  ManyToOne  & 4 OneToMany.
relationships. While update, it is calling update for all relational

For one of the oneToMany relationship table KNA1  (attaching the entity),
the update is not appending all fields of the entity and last field field
value is appearing like  " (null) null]". This entity has around 141
Attaching the main entity (Knvv) which I am updating.

(See attached file:
(See attached file:

Here is the entity which has OneToMany relationship.

(See attached file:
(See attached file:

Attaching the error log.

(See attached file: ErrorLog.txt)

Attaching persistence.xml also.

(See attached file: persistence.xml)

Please help me resolving the issue.

I am updating an entity by using the below entityManager:

	public String updateKnvv(Knvv knvv) throws Exception {
		EntityManager em = getEntityManager();
		try {
			knvv = em.merge(knvv);
		} catch (Exception ex) {
			try {
				if (em.getTransaction().isActive()) {
			} catch (Exception e) {
				throw e;
			throw ex;
		} finally {
		return "";

Thanks & Regards,
Prabhat Sharma
Onsite Technical Lead- RD Customer
3039 Cornwallis Road, Building 061, RTP,NC, 27709.
Work: 9195330161,
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message