[Hibernate] discriminator-value='null'

2003-01-17 Thread Russell Smyth
is there any way to specify a discriminator-value of null or not-null? I have a situation where I need one class mapped to rows in a table that have a value in a particular column, and a different class mapped to rows that have null in the same column. This is legacy data, so I do not have the a

RE: [Hibernate] List -> ArrayList

2003-01-17 Thread Matt Raible
I found that by removing the getPropertyList(int index) - the problem was solved. Thanks, Matt > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Juozas Baliuka > Sent: Thursday, January 16, 2003 11:29 AM > To: Raible, Matt; [EMAIL PROTECTED] > Su

[Hibernate] Re: Using Hibernate from a ServletFilter

2003-01-17 Thread Paul Snively
Oops, I spoke too soon. It's actually upon calling Query.list() that I get this exception. Specifically, I retrieve a named query and get the list: Query castQuery = session.getNamedQuery("castQuery"); castQuery.setLong(0, iFilmId.longValue()); Listcast = (List)castQuery.list(); So far, whe

[Hibernate] Re: Using Hibernate from a ServletFilter

2003-01-17 Thread Paul Snively
Jon, I got your code via the newsgroup--thanks for posting that! Unfortunately, under heavy threading load, I start to see exceptions in my logs: "Illegal attempt to associate a collection with two open sessions" is the message that I get. I should add that I have many lazy associations, and i

Re: [Hibernate] Possible bug with

2003-01-17 Thread Mark Woon
[EMAIL PROTECTED] wrote: I mean, your column names differ by just the first three chars. Have a look at your mapping. Your patch works by trimming characters from the start, to get it down to the 20 char limit (I changed this to 15, for the benefit of db2). Just try changing your mapping, and see

[Hibernate] RE: Saving an object with children is not working

2003-01-17 Thread Raible, Matt
Just a thought - could this be fixed by creating a composite-id class for my child objects? I haven't done that yet, I'm still using: Thanks, Matt -Original Message- From: Raible, Matt Sent: Thursday, January 16, 2003 4:34 PM To: '[EMAIL PRO

[Hibernate] Saving an object with children is not working

2003-01-17 Thread Raible, Matt
(grumbles after sending blank e-mail ... damn outlook) I am getting and saving an object (with children) using the following testscase: public void testSaveCMCFMaster() throws Exception { CMCFMaster c = dao.getCMCFMaster(new Long(105)); assertTrue(c != null);

[Hibernate] Saving an object with children is not working

2003-01-17 Thread Raible, Matt
I am getting and saving an object (with children) using the following testscase: --- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Clic