Re: [Hibernate] Debugging ClassCastException

2003-08-22 Thread Max Rydahl Andersen
The power that Hibernate provides is both compelling and elusive: It's clearly a better solution than using CMP. It seems to be very commonly used with EJB session beans by users in the real world. But it's elusive in that the gotchas are not well documented, and the documentation rarely states

[Hibernate] Mapping an object accross mutiple tables ??

2003-08-22 Thread St-Pierre Philip
Title: Mapping an object accross mutiple tables ?? Hi everyone,     With Hibernate, we can map to classes to the same table, (eg. A person object that has a reference to an address object, and the information of both are saved to same table T_PERSON). But can I save a single object across

Re: [Hibernate] API stability in SchemaUpdate

2003-08-22 Thread Serge Knystautas
Max Rydahl Andersen wrote: But - why don't you try to explain WHY you need this copy-pasting, maybe it's a feature that can be integrated into SchemaExport OR it could provide the motivation for having a more public stabilzied apiso please, tell use more ,) I gave a pretty complete descriptio

Re: [Hibernate] CVS access

2003-08-22 Thread Patrick Burleson
Les, I think the 2.1 stuff is on a branch in the CVS repository called v21branch. Set your working copy to point at that branch and I think you are good to go. Thanks, Patrick --- Les Hazlewood <[EMAIL PROTECTED]> wrote: > Hiya folks, > > I'd like to start participating in development. How c

[Hibernate] Subclasses (using discriminator) in a set

2003-08-22 Thread Jenica Humphreys
If I have a one-to-many relationship with a subclass using the table per class strategy, with a discriminator distinguishing between subclasses. I have another class with a set of a specific subclass of elements. My problem is that the set is being filled with all elements, not just the ones t

[Hibernate] API stability in SchemaUpdate

2003-08-22 Thread Serge Knystautas
I've built a set of "deployment" checks I use to help installation and upgrades... checks datasources are in the right place and can connect, application init parameters are valid, etc... One of the things I do is build the update scripts for Hibernate, since that's become our OR mapping tool o

Re: [Hibernate] API stability in SchemaUpdate

2003-08-22 Thread Max Rydahl Andersen
I guess that the code you are using is part of the internal parts of SchemaUpdate (as opposed to being part of any public api) - thus I don't think you will get any guarantees on that being stabalized! But - why don't you try to explain WHY you need this copy-pasting, maybe it's a feature that ca

RE: [Hibernate] newbies question about ids

2003-08-22 Thread Thierry Hanot
Title: Message I was thinking of using a new IdentityGenerator , but it's not enough because i have the id only after the insert . The problem is the following , when you need to access to the DB before the insert for getting an id , it's ok , you have infos on the table in the IdGenerator ,

Re: [Hibernate] CVS access

2003-08-22 Thread Max Rydahl Andersen
it is in the v21branch /max Les Hazlewood wrote: Hiya folks, I'd like to start participating in development. How can I get anonymous CVS access to the 2.1 development tree? I didn't see a specific module name listed on the Sourceforge CVS page... I'd like to be able to do my cvs update ever

[Hibernate] CVS access

2003-08-22 Thread Les Hazlewood
Hiya folks, I'd like to start participating in development. How can I get anonymous CVS access to the 2.1 development tree? I didn't see a specific module name listed on the Sourceforge CVS page... I'd like to be able to do my cvs update everytime I work on the tree to make sure that I'm i

Re: [Hibernate] NewBie

2003-08-22 Thread Christian Bauer
On 21 Aug (18:13), Prasad Iyer wrote: > 1. transaction.commit(); > 2. Session.flush(); > 3. Session.save(); > 4. Session.close(); > > I don't understand the order between this lines > well ofcourse the 4th line would be last. > thanks > regards > prasad chandrasekaran See reference documentatio

RE: [Hibernate] newbies question about ids

2003-08-22 Thread Les Hazlewood
Title: Message Can you use UUID's?  Then your problem would be solved  see the "uuid.hex" generator in the docs...   Les -Original Message-From: Thierry Hanot [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 10:34 AMTo: '[EMAIL PROTECTED]'Subject: RE: [Hiber

Re: [Hibernate] Subclassing super() error

2003-08-22 Thread Max Rydahl Andersen
sounds like a bug - add it to the jira - attach the hbm.xml files as files. /max Les Hazlewood wrote: I think I've discovered a fairly serious bug with the joined-subclass class generation. As an example, here is the following schema: column="db_creation_ts"

[Hibernate] NewBie

2003-08-22 Thread Prasad Iyer
Sir What is the order of the code? 1. transaction.commit(); 2. Session.flush(); 3. Session.save(); 4. Session.close(); I don't understand the order between this lines well ofcourse the 4th line would be last. thanks regards prasad chandrasekaran ---

RE: [Hibernate] newbies question about ids

2003-08-22 Thread Thierry Hanot
Title: Message I was thinking of using a new IdentityGenerator , but it's not enough because i have the id only after the insert . The problem is the following , when you need to access to the DB before the insert for getting an id , it's ok , you have infos on the table in the IdGenerator ,

[Hibernate] Problems with Schemaupdate (wrong sql command order)

2003-08-22 Thread Oliver Wehrens
Hi, does somebody has an idea why hibernate create alter statements before drop/create statements in the output of SchemaExport? Of course this all will fail... Oliver looks like: alter table dbmsrequestpassword drop constraint FK22419F066C19A3A2; alter table sportletdataattributes drop const