Al 09/06/2010 16:24, En/na Thiago H. de Paula Figueiredo ha escrit:
On Wed, 09 Jun 2010 11:18:16 -0300, Genís Pujol
wrote:
The database (Oracle 10g) has an index so it knows which Id to assign
next to the new record, but instead of this the new object gets Id =
0 (the next one Id=1 and so fo
On Wed, 09 Jun 2010 11:18:16 -0300, Genís Pujol
wrote:
The database (Oracle 10g) has an index so it knows which Id to assign
next to the new record, but instead of this the new object gets Id = 0
(the next one Id=1 and so forth).
It should be the db who assigns the right Id to the new reco
Al 09/06/2010 14:27, En/na Thiago H. de Paula Figueiredo ha escrit:
On Wed, 09 Jun 2010 09:16:55 -0300, Everton Agner
wrote:
I'm not a Hibernate advanced user, but you're using a XML and Entity
class annotations to configure your Entity?
I haven't noticed that. Ewerton is right: no need to
De: Everton Agner
Para: Tapestry users
Enviadas: Quarta-feira, 9 de Junho de 2010 9:16:55
Assunto: Res: Res: Res: session.persist saves object with id 0
I'm not a Hibernate advanced user, but you're using a XML and Entity class
annotations to configure your Entity
On Wed, 09 Jun 2010 09:16:55 -0300, Everton Agner
wrote:
I'm not a Hibernate advanced user, but you're using a XML and Entity
class annotations to configure your Entity?
I haven't noticed that. Ewerton is right: no need to use XML mappings when
you use annotations.
Anyways... If you wa
tically set the ID.
I guess you should use...
...instead. Try it out, i guess it will work.
- Everton
De: Genís Pujol
Para: Tapestry users
Enviadas: Quarta-feira, 9 de Junho de 2010 4:12:31
Assunto: Re: Res: Res: session.persist saves object with i
gh to just .persist()
it. ;)
*De:* Everton Agner
*Para:* Tapestry users ; gpu...@ngeografics.com
*Enviadas:* Terça-feira, 8 de Junho de 2010 9:32:36
*Assunto:* Res: session.persist saves object with id 0
Could you show
m
> Enviadas: Terça-feira, 8 de Junho de 2010 9:32:36
> Assunto: Res: session.persist saves object with id 0
>
>
> Could you show us how you mapped your Entity? And regardless if it was by
> XML or Annotations, show your Entity class code too.
>
>
> De: Peter Stavrinide
-feira, 8 de Junho de 2010 9:32:36
Assunto: Res: session.persist saves object with id 0
Could you show us how you mapped your Entity? And regardless if it was by XML
or Annotations, show your Entity class code too.
De: Peter Stavrinides
Para: Tapestry users ; gpu...@ngeografics.com
Enviadas
Could you show us how you mapped your Entity? And regardless if it was by XML
or Annotations, show your Entity class code too.
De: Peter Stavrinides
Para: Tapestry users ; gpu...@ngeografics.com
Enviadas: Terça-feira, 8 de Junho de 2010 5:39:14
Assunto: Re: session.persist saves object with id
Perhaps the type is a primitive, so instead of null a default value will be 0?
just a guess.
Peter
- Original Message -
From: "Genís Pujol"
To: "Tapestry users"
Sent: Tuesday, 25 May, 2010 18:30:10 GMT +02:00 Athens, Beirut, Bucharest,
Istanbul
Subject: session.
Hello,
After checking the tutorial I was trying to do a basic crud app, but
somehow after submiting the form (beaneditform) the new object is saved
into the database with id 0.
I'm also new to hibernate so I don't know why in the tapestry tutorial
is enough with session.persist(object), wha
12 matches
Mail list logo