Re: Property level Long problem

2008-01-09 Thread klaasjan elzinga
Hi, Does the entity exists? long is initialized with 0 which may be a valid entity in the store, and Long with null (indicating a new object...) does not exists. KlaasJan On Jan 10, 2008 12:21 AM, Janos Haber <[EMAIL PROTECTED]> wrote: > Hi! > > I have a little Entity. > > @Entity > @Table(name

Re: nonfatal general error org.apache.openjpa.persistence.PersistenceException: Schema 'GFI' does not exist

2007-12-17 Thread klaasjan elzinga
I meant try to create the actual schema (sorry for the confusion) where the tables will be created in. In a database a schema often corresponds with eg an user account. In mysql the notion of a schema corresponds with a database, in oracle it is an user. Im not sure about derby. So openjpa generat

Re: nonfatal general error org.apache.openjpa.persistence.PersistenceException: Schema 'GFI' does not exist

2007-12-17 Thread klaasjan elzinga
Maybe try creating the schema before you run the application ? Schema is not generated, so the default is used. KlaasJan On Dec 17, 2007 6:31 PM, Gilberto C Andrade <[EMAIL PROTECTED]> wrote: > Hi, all! > > First time here, I'm using orm.xml file and there I have a schema > definition: > > http:

Re: Persisting new Entity returns NULL Id

2007-12-08 Thread klaasjan elzinga
Did you enhance the classes? KlaasJan On Dec 8, 2007 5:21 AM, Rahul Thakur <[EMAIL PROTECTED]> wrote: > Hi, > > I have an persistable entity which has an identifier property setup with > following annotations: > > @Id > @GeneratedValue( strategy = GenerationType.IDENTITY) > @Column( n

Re: BigInteger and BigDecimal as Primary Key

2007-11-25 Thread klaasjan elzinga
ny suggestions? > > > Miro. > > > On 11/25/07, klaasjan elzinga <[EMAIL PROTECTED]> wrote: > > > > PLz see > > http://mail-archives.apache.org/mod_mbox/openjpa-users/200707.mbox/[EMAIL > > PROTECTED] > > > > [OPENJPA-331] - Allow Big

Re: BigInteger and BigDecimal as Primary Key

2007-11-25 Thread klaasjan elzinga
database > is declared DECIMAL(36,0)? > > > Miro. > > > On 11/24/07, klaasjan elzinga <[EMAIL PROTECTED]> wrote: > > > > Is it an option to declare the id as a Long/Integer field ie of the > > BigInteger? I think that will be the solution. And I

Re: BigInteger and BigDecimal as Primary Key

2007-11-24 Thread klaasjan elzinga
Is it an option to declare the id as a Long/Integer field ie of the BigInteger? I think that will be the solution. And I don't think it is a restriction, it is just not supported. KlaasJan On Nov 24, 2007 3:21 PM, Miroslav Nachev <[EMAIL PROTECTED]> wrote: > Hi, > > Can I use BigInteger /DECIMAL(

Re: org.springframework.dao.InvalidDataAccessApiUsageException: Encountered unmanaged object

2007-11-10 Thread klaasjan elzinga
Did you try putting the Cascade persist and cascade merge on the item->header relation? I think the exception means that the item is being persisted and encounters a not persisted (managed) header. Or try by calling persist(header) and after that the persist(item). KlaasJan On Nov 9, 2007 8:06 PM

Question version field (not updated???)

2007-10-13 Thread klaasjan elzinga
I have a simple case in which the version field is not updated. 1. I Create the entity 2. I change a property of the entity 3. I perform a find for the entity All three steps are done in three seperate transactions. The version field is updated in step 1 (from 0 to 1), as I expected. However the v

Re: Enhancer Ant Task in Netbeans?

2007-09-12 Thread klaasjan elzinga
Its the classpath, containing the required jars. Construct it using the path element. KJ On 9/12/07, Stanczak Group <[EMAIL PROTECTED]> wrote: > I get this. What's this refid for? > build.xml:91: Reference cp not found. > > klaasjan elzinga wrote: >

Re: Enhancer Ant Task in Netbeans?

2007-09-11 Thread klaasjan elzinga
My ant script looks like:

Re: DDL for foreign key constraints.

2007-09-10 Thread klaasjan elzinga
with a different one than the "ForeignKeyDeleteAction" > property. I got always the same DDL for FKs -> setting actions to the > one set for the property. > > > -Original Message- > From: klaasjan elzinga [mailto:[EMAIL PROTECTED] > Sent: Friday, Septem

Re: DDL for foreign key constraints.

2007-09-07 Thread klaasjan elzinga
ime with the > default operationOrderUpdateManager) > > -MappingDefaults > jpa(ForeignKeyDeleteAction=restrict,JoinForeignKeyDeleteAction=restrict) > > Hope this helps, > Prashant > > On 9/7/07, klaasjan elzinga <[EMAIL PROTECTED]> wrote: > > > > Doesnt tha

Re: DDL for foreign key constraints.

2007-09-07 Thread klaasjan elzinga
_jpa_fk > > Use this setting in your persistence.xml during development, to set JPA > to create the necessary Foreign Key, even if the schema was already > created. > value="buildSchema(ForeignKeys=true)"/> > > -Original Message---

DDL for foreign key constraints.

2007-09-06 Thread klaasjan elzinga
Hi there, I am trying to get openjpa to generate foreign key constraints. I have to following annotations: ... on the parent: @OneToMany(targetEntity=Message.class, cascade=CascadeType.ALL, mappedBy="mailingList") private List messages = new ArrayList(); ... on the child @ManyToOn