I've solved my problem by replaceing
em.persist(e);
with
e = (Employee) em.merge(e);
It works now.
--
View this message in context:
http://www.nabble.com/How-to-PERSIST-object-without-loading-references--tp16472647p17803850.html
Sent from the OpenJPA Users mailing list archive at Nabble.com
I commented out the @Id fields in:
TblPdtbnf.java
and added:
@EmbeddedId
private TblPdtbnfPK tblPdtbnfPK;
Now I get this exception, which seems more promising, but still no cigar.
Caused by: org.apache.openjpa.lib.jdbc.ReportingSQLException: DB2 SQL error:
SQLCODE: -530, SQLSTATE: 23503, SQLE
We are getting a problem that is only occurring with one very large
database (over 40,000 rows): when we make a certain query
(org.apache.openjpa.persistence.QueryImpl.getResultList()), instead of
getting a List of persistent objects, openJPA is throwing a
PersistenceException which it claims
The exception is thrown from db2 jcc driver. You might want to collect jdbc
trace and consult IBM.
-f
--- On Thu, 6/12/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Subject: Getting PersistenceException due to MalformedInputException OR
> cor
Hi,
I am facing issues in inserting data from a web application (Using
OpenJPA) into DB2 table which is renamed daily.
The issue is :
My Application reads data from a flat file every day and inserts into a
table whose name is like
* <> appended by <>*
So the table name changes everyday (the tabl
We are getting a problem that is only occurring with one very large
database (over 40,000 rows): when we make a certain query
(org.apache.openjpa.persistence.QueryImpl.getResultList()), instead of
getting a List of persistent objects, openJPA is throwing a
PersistenceException which it claims
I can't get cascading persist working on my entities which have the following
mappings.
TblScmpdt.java //Parent
@OneToMany(fetch =
FetchType.LAZY,mappedBy="tblScmpdt",cascade={CascadeType.MERGE,CascadeType.REMOVE})
private Collection tblPdtbnfs = new ArrayList();
TblPdtbnf.java //Child
@Id
@