Sorry List,

Forgot to send a copy to you guys.

----- Forwarded by Diego Bendlin/PY/ABAS/PwC on 11/04/2005 09:45 a.m. -----
Diego Bendlin

11/04/2005 09:21 a.m.


        To:        Guillaume Lederrey <[EMAIL PROTECTED]>
        cc:        Javier Adorno/PY/GTS/[EMAIL PROTECTED]
        Subject:        Re: [Andromda-user] AndroMDA + Hibernate problem (Generated ID's)Link


Guillaume,

Yes, im using PostgreSQL and I also tried out with SapDB (Of cource in two diferent projects using the same Poseidon Project File).

No, after calling session.save() there is no error displayed on the AS (JBoss).

And finally, I didn't try session.flush() after session.save() I'll try this and let you guys know,

As for the sequence issue, the only thing that happends is that hibernate calls the hibernate_sequence.nextval making the hibernate_sequence increment by one each time I run de cliente app.

Thanks a lot!

Diego Bendlin
PricewaterhouseCoopers - Advisory
Asunci�n - Paraguay
Phone  : +595  21 445-003 ext. 1314
Mobile : +595 991 744-220




Guillaume Lederrey <[EMAIL PROTECTED]>

11/04/2005 04:32 a.m.
Please respond to Guillaume Lederrey

       
        To:        Diego Bendlin/PY/ABAS/[EMAIL PROTECTED]
        cc:        
        Subject:        Re: [Andromda-user] AndroMDA + Hibernate problem (Generated ID's)



On Apr 11, 2005 12:26 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> 2nd)I've configured the project to use PostgreSQL        
>         dataSource=java:/clubECPg
>         sql.mappings=SapDB <-- ###
>
> hibernate.db.dialect=net.sf.hibernate.dialect.SAPDBDialect <-- ###

 Are you using PostgreSQL ?

> After invoking this method on the client and passing a Value Object (rubro)
> I can see that the Deployed app calls a sequence on the databases but no
> insert statement.

 The "native" method used to generate primary keys on PostrgeSQL is
using a sequence. The sequence has to be in sync with the content of
the table. That means that if you manually created rows in your DB,
you have to remember to update the sequence as well.

 Is there an exception generated when you do the session.save() ?
Could you send the stack trace ?

 Guillaume




_________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

Reply via email to