Re: [Hibernate] Queries with composite id's

2003-01-09 Thread One Ovthafew
Ahah - I think I know now what has changed :) Do the XXXHistoryImpl classes inherit XXXImpl? If so, then the solution is simply to add polymorphism="explicit" to your mapping documents. - Never lose a fax again, receive faxes t

Re: [Hibernate] Improving schemas support

2003-01-09 Thread One Ovthafew
t a desired behaviour. > > Regards > Chris > > - Original Message - > From: "One Ovthafew" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, January 04, 2003 3:53 PM > Subject: Re: [Hibernate] I

Re: [Hibernate] Using Hibernate from a ServletFilter

2003-01-09 Thread One Ovthafew
Thanks, Jon - I would also love it if you could write a little bit of metadata about this stuff in the Wiki design patterns page ... (theres a big TODO there for this) - Never lose a fax again, receive faxes to your personal e

Re: [Hibernate] Queries with composite id's

2003-01-09 Thread One Ovthafew
>> I recently upgraded one of our applications from Hibernate 1.0 (or one of the release around there) to Hibernate 1.2. My queries that depend on the properties of a composite id no longer work. << Yick!! I'm very surprised.I paid special attention to this in the test suite, because I knew i

[Hibernate] Hibernate 2 Transaction API

2003-01-05 Thread One Ovthafew
I'd like to propose a change to the Transaction API, for the purpose of making the standard try/catch/finally idiom a bit cleaner. What I would like is for the idiom to look like: Session s = factory.openSession(); try { //instantiate a new Transaction object, begin the transaction

Re: [Hibernate] Improving schemas support

2003-01-04 Thread One Ovthafew
Set the property hibernate.default_schema :) - Would you like to receive faxes to your personal email address? You can with mBox. Visit http://www.mbox.com.au/fax --- This s

Re: [Hibernate] tabs?

2003-01-04 Thread One Ovthafew
> "beautiful, shiny, happy TABS!" - are you on drugs or something :) You want some? > Just wanted to know if I have to enable "Use tabs for indention" in my > editors from now on when im editing hibernate ? Not necessarily; I also checked a little indent.py script that will enforce my drug-induc

Re: [Hibernate] Getting a sorted list of results

2003-01-04 Thread One Ovthafew
Add hibernate.query.imports=com.comcast.cable.dmc.itd.cct.persistence to hibernate.properties P.S. Something earlier gave me the impression you were really only trying to get back a list of names, rather than objects sorted by name; you might want to try: Query q = ses.createQuery( "select m

Re: [Hibernate] Postgres problem - idle in transaction.

2003-01-04 Thread One Ovthafew
I have never seen this problem (I test with Postgres 7.3 running under cygwin), but I imagine that it is to do with how you have configured connection pooling. You can set hibernate.connection.pool_size=0 to disable pooling, if you like, or try out Juozas' suggestion and use a different pooling

Re: [Hibernate] Suggestion: Encapsulate SQLException in HibernateException

2003-01-04 Thread One Ovthafew
> Why not HibernateException extends SQLException? Lotsa reasons for one, we want to be able to use exception chaining. If no consensus forms on this issue, then I will stay in conservative mode and leave things as they are. Gavin -

Re: [Hibernate] ClassNotFoundException Problem with Orion with 1.2.1

2003-01-04 Thread One Ovthafew
As I mentioned in answer to that post, this is a known problem on some JVMs. Either: (1) grab a cvs update (2) revert to 1.2 until I release 1.2.2 today or tomorrow - NEW to mBox, receive faxes to any email address! Find ou

Re: [Hibernate] Middlegen and XDoclet marriage

2003-01-03 Thread One Ovthafew
We havn't actually had much discussion of middlegen on this list (though it has come up a couple of times). This recent burst of activity is mainly in response to the thinking Max has been doing recently and I'm just kinda following up on his ideas. I'd particularly like to know what Konstantin t

Re: [Hibernate] Suggestion: Encapsulate SQLException in HibernateException

2003-01-03 Thread One Ovthafew
I am happy to introduce a JDBCException that wraps any SQLExceptions that occur. However, I don't have a strong view either way. So lets just vote on this Gavin >> I was thinking about wrapping SQLException in HibernateException, so that we don't need to worry about catch HibernateException a