Mario,

Where is your hibernate.properties file? in WEB-INF/classes or somewhere
else?

Regards,
David

-----Original Message-----
From: Jesse Alexander (KXT) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 21, 2004 5:09 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts and Hibernate


could the problem lie beneath the different jdbc-drivers you two guys use?
Joe, you are using the newest generation mysql-driver. Mario uses the old
one.
I also experienced strange stuff using the old one. worked after switching
to
the new one...

hth
Alexander

-----Original Message-----
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 8. April 2004 08:08
To: [EMAIL PROTECTED]
Subject: Re: Struts and Hibernate


Mario,

hibernate config look like?

If it's saying the dialect doesn't support identity (and MySQL clearly
does --
 I use it!), then I'm betting it's the dialect you've specified.

What follows is a snippet from my hibernate.properties file.

HTH

-Joe

hibernate.dialect = net.sf.hibernate.dialect.MySQLDialect
hibernate.connection.driver_class = com.mysql.jdbc.Driver
hibernate.connection.url = jdbc:mysql://localhost:3306/bb?autoReconnect=true



> -----Original Message-----
> From: Mario St-Gelais [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 08, 2004 1:08 AM
> To: Struts Users Mailing List
> Subject: Re: Struts and Hibernate
>
>
> David Friedman wrote:
>
> >Nick,
> >
> >Your problem is the "type" set in your <id.../> tag.  From
> (RTFM) the
> >page:
> >http://www.hibernate.org/hib_docs/reference/html/or-mapping.h
> tml#or-mapping-
> >s1-4--generator
> >
> >See the "identity" description, which reads:
> >
> >
> >
> >>identity - supports identity columns in DB2, MySQL,
> >>MS SQL Server, Sybase and HypersonicSQL. The returned
> identifier is of
> >>type long, short or int.
> >>
> >>
> >
> >The issue is your attempted use of class "java.lang.Long"
> instead of of
> >"long", "short", or "int".  I had a similar problem months
> ago when I
> >started using Hibernate, until I re-read that primer.
> >
> >Also, you may wish to set your generator from "identity" to
> "native".
> >That way, if you switch database products, it will
> automatically figure
> >out if it can use identity, sequence, or hilo. (see the same
> document
> >section just a few lines lower under the "native" explanation)
> >
> >Regards,
> >David
> >
> >
> >
> Well Gentleman, it is a big FAIL!!  Still not working.   It is one
> o'clock in the morning, I am calling it a day.  A bad way to
> finish it
> though.
> I hit on the hibernate forum as you suggested Nick, without not much
> succes.  But I posted a message on a thread discussing the
> same issued I
> am having...
>
> --
> _________________
> Mario St-Gelais
> www.gestionti.com
> "Good judgment comes from
> experience- usually experience
> which was the result of poor judgment"
> Bill Putnam
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to