Re: [Hibernate] implemented outerjoin fetching for single-column queries...

2003-01-18 Thread Gavin King
No; I've mentioned this a few times: Hibernate never rendered any outerjoins in the first SQL statement (ie. the one translated from HQL). Any objects that needed to be fetched subsequently were certainly fetched using outerjoins. ie. from foo in class Foo turned into select * from FOOS foo

Re: [Hibernate] collections (in one-to-many, many-to-one, etc..)

2003-01-18 Thread Gavin King
Inside a Session, Hibernate keeps a snapshot of the original state of a collection and so can do removals/additions individually. However, an object that came into the session via a call to update() may have had all kind of things done to it (a PersistentCollection completely replaced with a tran

Re: [Hibernate] hibernate unittests not "compatible" with eclipse...

2003-01-18 Thread Gavin King
I run the unit tests inside eclipse every day with no problems and no particular special configuration. I don't want to have to re-parse mappings before each test, as that would make it *much* slower to run the tests. --- This SF.NET email is

Re: [Hibernate] jcs cache

2003-01-18 Thread Gavin King
Of course. We always hit the session cache first to preserve == in a particular session. If we don't find it there, we "copy" it out of the global cache to preserve threadsafeness between different sessions. The semantics are the same, whether you have a global cache or not. > Just needs to be s

[Hibernate] collections (in one-to-many, many-to-one, etc..)

2003-01-18 Thread Max Rydahl Andersen
Hi! Just need some thing explained :) How does Hibernate decide/track how to delete, update, insert tuples based on what the user has added and/or removed in the sets/lists representing many-to-one and many-to-many mappings ? (the question just came to my mind when i saw: "P.S. Hibernate is *no

[Hibernate] collections (in one-to-many, many-to-one, etc..)

2003-01-18 Thread Max Rydahl Andersen
Hi! Just need some thing explained :) How does Hibernate decide/track how to delete, update, insert tuples based on what the user has added and/or removed in the sets/lists representing many-to-one and many-to-many mappings ? (the question just came to my mind when i saw: "P.S. Hibernate is *no

RE: [Hibernate] Re: Using Hibernate from a ServletFilter

2003-01-18 Thread Matt Raible
I haven't written it yet, but I'm planning on it soon - just wanted to get some ideas from the group. What do you think about creating a ThreadLocal HibernateSession.java file at the persistence level - and then wrapping it on each level (business layer, web layer) to create sessions for that leve

[Hibernate] hibernate unittests not "compatible" with eclipse...

2003-01-18 Thread Max Rydahl Andersen
Hi! I've had my shear of problems running the junit tests from inside eclipse, and now I've found out why :) Running the junit tests from the command line seems always to work, but from eclipse I constantly get "No persisters found for XXX" where XXX is some class being saved in the test. The pr

[Hibernate] implemented outerjoin fetching for single-column queries...

2003-01-18 Thread Max Rydahl Andersen
What does the subject from the cvs commit message actually mean ? :) (I thought Hibernate already outerjoin fetched in every kind of query ?) /max --- This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will allow you to exten

Re: [Hibernate] jcs cache

2003-01-18 Thread Max Rydahl Andersen
Just needs to be sure about this one (have told my coworker something else, i think :) The cached entities will still have correct == semantics, right ? so, ... s1 = sf.openSession(); p1 = s.load(Person.class, 42); // p is loaded from db and a copy of it is put in the global cache p2 = (Person)

[Hibernate] limit (was: problems with date comparision)

2003-01-18 Thread Gavin King
> Uh, LIMIT and OFFSET are not supported? setMaxResults() and setFirstResult() are supported. They achieve the same thing. > This may not be standard SQL, but some DBs > that Hibernate supports do support that SQL > extension. As far as I can tell, each database has its own syntax for this. Quer

Re: Re: [Hibernate] problems with date comparision

2003-01-18 Thread otisg
Uh, LIMIT and OFFSET are not supported? This may not be standard SQL, but some DBs that Hibernate supports do support that SQL extension. I thought that the whole point of having different Dialects for different types of databases was to support things that are different, non-standard about them.

Re: [Hibernate] jcs cache

2003-01-18 Thread Gavin King
The cache is not used for *queries*. It is used for calls to load() and for resolving associations. Also note that the cache does not store actual Vertex instances; it stores a *copy* of the state of the vertex. So an instance retrieved from the cache will always be a different instance from the

Re: [Hibernate] problems with date comparision

2003-01-18 Thread Timothy Kettering
Allright! That worked beautifully. My question is.. if LIMIT is not supported, then why did it work just fine for the other 2 types of queries I'm using it in... and it even returns the correct amount of results i want! Kinda dangerous to let that in, if its going to give unpredictable resul

Re: [Hibernate] problems with date comparision

2003-01-18 Thread Tim Kettering
Allright! That worked beautifully. My question is.. if LIMIT is not supported, then why did it work just fine for the other 2 types of queries I'm using it in... and it even returns the correct amount of results i want! Kinda dangerous to let that in, if its going to give unpredictable resul

[Hibernate] [ hibernate-Bugs-669716 ] SequenceHiLoGenerator looks up the wrong parameter.

2003-01-18 Thread SourceForge.net
Bugs item #669716, was opened at 2003-01-18 00:04 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428708&aid=669716&group_id=40712 Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Simon Harris (haruki_zaemon) Assigned to: Nobod

[Hibernate] [ hibernate-Bugs-669716 ] SequenceHiLoGenerator looks up the wrong parameter.

2003-01-18 Thread SourceForge.net
Bugs item #669716, was opened at 2003-01-18 00:04 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428708&aid=669716&group_id=40712 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Simon Harris (haruki_zaemon) Assigned to: Nobody/Ano

[Hibernate] [ hibernate-Bugs-669746 ] delimiterproblem in SchemaExport

2003-01-18 Thread SourceForge.net
Bugs item #669746, was opened at 2003-01-17 06:34 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428708&aid=669746&group_id=40712 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonym

[Hibernate] [ hibernate-Patches-662319 ] Codegen for Hibernate 2 - release

2003-01-18 Thread SourceForge.net
Patches item #662319, was opened at 2003-01-04 21:15 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428710&aid=662319&group_id=40712 Category: Codegen Group: None Status: Open Resolution: Accepted Priority: 5 Submitted By: Max R. Andersen (maxcsaucdk) Assigned to:

[Hibernate] [ hibernate-Patches-662319 ] Codegen for Hibernate 2 - release

2003-01-18 Thread SourceForge.net
Patches item #662319, was opened at 2003-01-05 07:15 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428710&aid=662319&group_id=40712 Category: Codegen Group: None Status: Open >Resolution: Accepted >Priority: 5 Submitted By: Max R. Andersen (maxcsaucdk) Assigned to

[Hibernate] [ hibernate-Bugs-669716 ] SequenceHiLoGenerator looks up the wrong parameter.

2003-01-18 Thread SourceForge.net
Bugs item #669716, was opened at 2003-01-18 00:04 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428708&aid=669716&group_id=40712 Category: None Group: None Status: Closed Resolution: Fixed Priority: 5 Submitted By: Simon Harris (haruki_zaemon) Assigned to: Nobody/

[Hibernate] [ hibernate-Bugs-669070 ] Duplicate alias generated for 2 different columns in select

2003-01-18 Thread SourceForge.net
Bugs item #669070, was opened at 2003-01-17 01:30 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428708&aid=669070&group_id=40712 Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Simon Harris (haruki_zaemon) Assigned to: Nobod

[Hibernate] [ hibernate-Bugs-669070 ] Duplicate alias generated for 2 different columns in select

2003-01-18 Thread SourceForge.net
Bugs item #669070, was opened at 2003-01-17 01:30 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428708&aid=669070&group_id=40712 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Simon Harris (haruki_zaemon) Assigned to: Nobody/Ano

[Hibernate] [ hibernate-Bugs-669719 ] SAPDB dialect generates unsupported syntax

2003-01-18 Thread SourceForge.net
Bugs item #669719, was opened at 2003-01-18 00:07 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428708&aid=669719&group_id=40712 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Simon Harris (haruki_zaemon) Assigned to: Nobody/Ano

[Hibernate] [ hibernate-Bugs-669719 ] SAPDB dialect generates unsupported syntax

2003-01-18 Thread SourceForge.net
Bugs item #669719, was opened at 2003-01-18 00:07 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428708&aid=669719&group_id=40712 Category: None Group: None >Status: Closed >Resolution: Rejected Priority: 5 Submitted By: Simon Harris (haruki_zaemon) Assigned to: No

[Hibernate] [ hibernate-Bugs-669746 ] delimiterproblem in SchemaExport

2003-01-18 Thread SourceForge.net
Bugs item #669746, was opened at 2003-01-18 01:34 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428708&aid=669746&group_id=40712 Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/A

[Hibernate] [ hibernate-Bugs-669070 ] Duplicate alias generated for 2 different columns in select

2003-01-18 Thread SourceForge.net
Bugs item #669070, was opened at 2003-01-17 01:30 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428708&aid=669070&group_id=40712 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Simon Harris (haruki_zaemon) Assigned to: Nobody/Ano

[Hibernate] [ hibernate-Patches-662319 ] Codegen for Hibernate 2 - release

2003-01-18 Thread SourceForge.net
Patches item #662319, was opened at 2003-01-04 21:15 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428710&aid=662319&group_id=40712 Category: Codegen Group: None Status: Open Resolution: Accepted Priority: 5 Submitted By: Max R. Andersen (maxcsaucdk) Assigned to:

[Hibernate] [ hibernate-Bugs-669719 ] SAPDB dialect generates unsupported syntax

2003-01-18 Thread SourceForge.net
Bugs item #669719, was opened at 2003-01-18 00:07 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428708&aid=669719&group_id=40712 Category: None Group: None Status: Closed Resolution: Rejected Priority: 5 Submitted By: Simon Harris (haruki_zaemon) Assigned to: Nobo

Re: [Hibernate] problems with date comparision

2003-01-18 Thread Gavin King
Note that the Hibernate query language does not support the "limit" syntax. Use setMaxResults() instead. --- This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will allow you to extend the highest allowed 128 bit encryption t

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

Re: [Hibernate] problems with date comparision

2003-01-18 Thread Timothy Kettering
Good suggestion. I checked the database and it's in datetime format. It's storing the time too because the time shows up properly when I do entries, and it also gets retrieved properly if I retrieve an single entry to match a timestamp. I even checked the hbm.xml file - timestamp as well. An

RE: [Hibernate] problems with date comparision

2003-01-18 Thread Ken Robinson
The first thought that comes to mind is that your database column is not storing time information, i.e. year/month/day only. You might want to take a look at that. -Original Message- From: Timothy Kettering [mailto:[EMAIL PROTECTED] Sent: Friday, January 17, 2003 4:35 PM To: [EMAIL PROTEC

[Hibernate] problems with date comparision

2003-01-18 Thread Timothy Kettering
I'm using Hibernate with a program that I'm developing, and one my small test units turned up a weird issue that I'm not sure if is a bug or i'm screwing up somewhere... This is the query I have: be = sess.find("select entry from entry in class " + "com.blackcore.blogserver.general.BlogE