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
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
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:
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
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
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
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(
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
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
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:
>
My ant script looks like:
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
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
_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---
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
15 matches
Mail list logo