If anyone else runs into this situation, here is the solution:
http://openjpa.apache.org/docs/latest/manual/manual.html#ref_guide_pc_oi
d_entitypk
http://mail-archives.apache.org/mod_mbox/openjpa-users/200707.mbox/%3c11
[EMAIL PROTECTED]
Marc
(always post your solutions!)
-Original Mess
Hi all,
I'm trying to do a ManyToMany mapping with additional data in the link
table. Here's a sample:
@Entity
public class Foo
{
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
private int fooId;
}
@Entity
public class Bar
{
@Id
@GeneratedValue(stra
Sorry, one more thing: If you're using a sequence, shouldn't you be
using:
@GeneratedValue(strategy=GenerationType.SEQUENCE)
Marc
-Original Message-
From: Marc LaPierre [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 14, 2008 2:56 PM
To: users@openjpa.apache.org
Subject: RE: Primary
It seems like JPA isn't finding your sequence in the ves schema.
Are you sure that your sequence exists in Postgres?
Are you able to run "select currval('user_id_seq')" from the sql
console?
Marc
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, Febr
Hi,
What sorts of errors are you seeing? What does your configuration and
tool invocation look like?
-Patrick
On Wed, Feb 13, 2008 at 4:34 AM, xenHalfLife <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am struggling myself with what might seem like trivial task. I got set of
> Java POJOs (entities)
Emm problem fixed with the following persistence.xml file
http://java.sun.com/xml/ns/persistence";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
version="1.0">
pajitadb
org.apache.openjpa.persistence.PersistenceProviderImpl
com.pajitamusic.e
Hello, i'm developing a java2se app with OpenJPA (1.0.1) and PostgreSQL (8.1
)
and i think i have a problem with the build.xml and persistence.xml files
because
when i try to run the application i get this error:
[java] java.lang.reflect.InvocationTargetException
[java] at sun.reflec