Re: [Hibernate] questions about polymorphism

2003-08-07 Thread Gavin . King
>> It seems that if I use "table-per-class", I am going to get hit with thirty queries every time I do a select of the superclass, is that correct? << Correct >> But if I use "table-per-subclass" with , I will get two selects -- one for the superclass result set and one for each table (or table

Re: [Hibernate] useLimit problems.

2003-08-07 Thread Fredrik Larsson
Hmm posted too soon as always :-( After studying the code some more I noticed that hibernate will use the setMaxRows() method on the PreparedStatement instead of adding a limit expression to the sql statement. Hopefully this is just as good. I'll have to make sure it is. Sorry for the inconveni

[Hibernate] Help Wanted :)

2003-08-07 Thread Gavin . King
David Channon has implemented support for Dialect-specific SQL functions in the HQL select clause. This means that we need to go though the dialects, one by one, and fill in the standard functions for that Dialect. David has already done this for Oracle. It would be very nice if some platform exper

[Hibernate] Help : Bidirectionally Polymorphic One to Many associations

2003-08-07 Thread Dhananjay Nene
I have the following scenario and have been unable to resolve the underlying issues by reading either the manual or the faq. I have two inheritance hierarchies. eg. Customer is a base class and InternalCustomer and ExternalCustomer are derived classes. Similarly Location is a base class wherea

[Hibernate] outer-join attribute for collection mappings

2003-08-07 Thread Gavin . King
Well, I still think that this is almost always a Bad Thing, but it is now possible to configure (exactly one) collection to be loaded by outer join in the mapping file. This will affect the fetching beviour for * load() * Criteria queries * lazy association access It does not affect the behaviou

RE: [Hibernate] Moving Hibernate objects with SOAP

2003-08-07 Thread Brian Topping
Title: RE: [Hibernate] Moving Hibernate objects with SOAP Hi Jon,   One of the things that I currently do is use XDoclet to generate inline transforms for going back and forth from XML to entity.  You end up with hardcoded serializers, which are very fast, but I don't have enough experience

Re: [Hibernate] hbm2java patch for generating find methods

2003-08-07 Thread Max Rydahl Andersen
This is already fixed in CVS - old news ;) Sorry that i did not bite on your posting earlier, but with approx. 150 mails per day regarding hibernate one or two will slip ;( /max [EMAIL PROTECTED] wrote: The following is in the patch. This patch is based on a question I posted earlier today (ht

Re: [Hibernate] Unit Testing With ThreadLocal Sessions

2003-08-07 Thread Joseph Fifield
They are not coupled with the web tier. They only require _something else_ to close the session at the appropriate time. In a web application, it happens to be a servlet filter. In test cases, it happens to be the tearDown() method. There is no dependency on the web tier when running the test cases

[Hibernate] Problem with SchemaUpdate

2003-08-07 Thread Oliver Wehrens
Hi, ich have a class and a mapping. Now I enhance the class and mapping and I want to run SchemaUpdate from inside my code. I add a property 'old' to my code as well as to the mapping file. The generated sql update statement is: alter table xattr add columnold VARCHAR(20) alter table attributes ad