sorry, can't answer specific Q on whether you can access datasource from
generator. but it sounds like you are trying to uniquely ID rows in a
database?
if so then the simplest way seems to be to use auto_increment fields and let
the database handle it. or are you saying that that isn'y working
OK now I see your problem. I have the same issue. I've worked around it
with a bit of a hack I'm afraid, and just used the MySQL non-jdbc solution.
As you say I will pay the price for this sin later, if I ever need to swap
database. However I've taken a view that for my specific situation, this
Sorry - can't answer that one for sure. Does look a bit strange.
I could only guess that it might be to do with classloading? I seem to
remember that a class abc.def.MyClass loaded by classloader A is deemed
to be different to the same class abc.def.MyClass loaded by classloader
B, so I would
-
From: Steve Kirk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 8:58 AM
To: 'Tomcat Users List'
Subject: RE: GlobalNamingResouces used by other GlobalNamingResources
Sorry - can't answer that one for sure. Does look a bit strange.
I could only guess that it might be to do
Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday 27 October 2004 14:03
To: Tomcat Users List
Subject: RE: GlobalNamingResouces used by other GlobalNamingResources
Hi,
Yeah, Steve's advice on classloading is right on the mark... I don't
have time to check
To: 'Tomcat Users List'
Subject: RE: GlobalNamingResouces used by other GlobalNamingResources
OK now I see your problem. I have the same issue. I've
worked around it
with a bit of a hack I'm afraid, and just used the MySQL
non-jdbc solution.
As you say I will pay the price for this sin later
PM
Subject: RE: GlobalNamingResouces used by other GlobalNamingResources
I've just noticed another (more elegant) solution from another post, and
will be changing my code to use it. As long as your database driver
supports it, try using statement.getGeneratedKeys()
I got this example from
http