Re: [Hibernate] Help, I implemented Criteria.count() and no one cares!!

2003-12-01 Thread Gavin King
Hi, I apologise. Me not answering emails generally means I don't quite know what to say and am still thinking something through. Anyway, as I've indicated elsewhere, I don't want this stuff in the Criteria API *yet*. We havn't decided how we should implement projection/aggregation yet, and whe

[Hibernate] Mapping File Trouble

2003-12-01 Thread Neema, Devesh (MED, Contractor)
Hi Hibernate Users, My database table structure is as follows Table A { Composite key :- PatId PaticipantId } Table B { Primary Key :- AdmissionId and

[Hibernate] hibernate xdoclet plugin & ehcache

2003-12-01 Thread khote
Is anybody working on the hibernatedoclet, to add the ehcache features somewhere? Kevin --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help y

Re: [Hibernate] Mapping File Trouble

2003-12-01 Thread Christian Bauer
On 01 Dec (20:31), Neema, Devesh (MED, Contractor) wrote: > Doubt : How to represent in Mapping file ? > Please Respond me. Please read the documentation, FAQs and ask on the User Forum if you still have questions. -- Christian Bauer [EMAIL PROTECTED]

Re: [Hibernate] Help, I implemented Criteria.count() and no one cares!!

2003-12-01 Thread Chris Nelson
Gavin, Thanks for getting back to me. I read an earlier post where you had said something like this, but I was hoping you might reconsider. I agree that having something even more generic would be better, but having a count method now is absolutely critical to anyone wanting to use the Criteria

Re: [Hibernate] hibernate xdoclet plugin & ehcache

2003-12-01 Thread Nick Heudecker
If nobody else steps up, I'm willing to take this on. I've done some other XDoclet hacking recently and it's not too bad. However, I haven't touched any of the XDoclet 2 stuff. On Mon, Dec 01, 2003 at 07:06:26AM -0800, khote wrote: > Is anybody working on the hibernatedoclet, to add the ehcache

[Hibernate] Hibernate & Spring Javabean instantiation

2003-12-01 Thread Rob Butler
I have posted this to the Hibernate & Spring mailing lists as I think this will require the involvement of both development teams to answer. Hibernate uses **javabean no-arg constructors** to instantiate objects and then uses javabean setters / getters when mapping from / to the database. Sprin

Re: [Hibernate] Help, I implemented Criteria.count() and no one cares!!

2003-12-01 Thread David Morris
In general it is best to avoid paging if at all possible but if you can't avoid it don't forget that different databases have different ways of implementing a count. With Oracle you would use rownum if possible and with DB2 you would add fetch first n rows only. David Morris >>> Chris Nelson <[EM

Re: [Hibernate] Help, I implemented Criteria.count() and no one cares!!

2003-12-01 Thread Max Rydahl Andersen
Yes - and Hibernate honors those differences as much as possible. /max David Morris wrote: In general it is best to avoid paging if at all possible but if you can't avoid it don't forget that different databases have different ways of implementing a count. With Oracle you would use rownum if pos

Re: [Hibernate] Hibernate & Spring Javabean instantiation

2003-12-01 Thread Max Rydahl Andersen
Hi Rob, Have you taken a look at Interceptor.instantiate(Class clazz, Serializable id) ? With that you can do whatever you want regarding construction of objects ;) /max Rob Butler wrote: I have posted this to the Hibernate & Spring mailing lists as I think this will require the involvement of

[Hibernate] hibernate, spring?

2003-12-01 Thread khote
I'm having spring load a LocalSessionFactoryBean from a spring context file. I upgraded my hibernate to 2.1 last night, now all is lost uh, yeah. How do I turn off the ehcache completely, totally, and without pity? [junit] [INFO] Configuration - -instantiating and configuring caches [j

Re: [Hibernate] Hibernate & Spring Javabean instantiation

2003-12-01 Thread Rob Butler
> Have you taken a look at Interceptor.instantiate(Class clazz, Serializable id) ? > > With that you can do whatever you want regarding construction of objects ;) > Cool, exactly what I was looking for! That along with Hibernate's Lifecycle interface will do everything I was asking for in my

Re: [Hibernate] Hibernate & Spring Javabean instantiation

2003-12-01 Thread Max Rydahl Andersen
You are always welcome to post your SpringBeanFactoryInterceptor on our Wiki ;) /max Rob Butler wrote: Have you taken a look at Interceptor.instantiate(Class clazz, Serializable id) ? With that you can do whatever you want regarding construction of objects ;) Cool, exactly what I was looking

[Hibernate] Composite Id one-to-one relationship

2003-12-01 Thread Neema, Devesh (MED, Contractor)
Hi Hibernate Users, I have a tables with following Structure : Table A :- Composite ID 1. PatId:- many-to-one relationship with Table C 2.ParticipantId :- many-to-one relationship with Table