RE: [Hibernate] problems with date comparision

2003-01-18 Thread Russell Smyth
How are you creating your "Date" object? If you are creating a date that reperesents for example 01/01/2003 (no time) then searching your database for > this date will find matches for any 01/01/2003 entries that are not 00:00:00 time. > -Original Message- > From: Timothy Kettering [ma

[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

[Hibernate] question on H2 roadmap progress

2003-01-09 Thread Russell Smyth
I am looking to create a custom id generator for my project and noticed several planned "enhancements" for H2 in the id generator area. Two are specific generator cases, so I am not concerned with them. What I would like to know is how far has the planning gone for * named id generator parameters

[Hibernate] Possible additions to Lifecycle interface

2003-01-09 Thread Russell Smyth
We ran into a situation that we belived we could solve through the Lifecycle methods, but we found something lacking.. currently there is onSave onUpdate onDelete onLoad all of these are called BEFORE the appropriate action is performed. What we would like is a complementary set of AFTER calls o

[Hibernate] [PATCH] make Query.setMaxResults() work for all databases

2002-12-23 Thread Russell Smyth
I have submitted a patch to the SF patch manager which allows Query.setMaxResults() to work even on databases which do not support PreparedStatement.setMaxRows(), such as SAPDB (which we must work with). The change is small, but it should increase compatablity greatly. My patch also includes remo