Re: [Hibernate] Problem with query-by-example on primary-key

2004-11-12 Thread Emmanuel Bernard
Please search and use the user forum for such questions... and the doc :-) Emmanuel Bernard 01.55.21.52.14 Fnac - DSI Direction France - Nouvelles technologies 67, boulevard du Gal Leclerc 92612 Clichy Cedex Robb Greathouse wrote: I can query by example with the following code perfectly; except wh

[Hibernate] Problem with query-by-example on primary-key

2004-11-12 Thread Robb Greathouse
I can query by example with the following code perfectly; except when the primary key (ID) is the only one set.  Then the where clause read "Where 1=1"  (1 being the unique ID).  When the example object only has the ID set it loads all entries in the table.  Is there something else I need to