[Hibernate] One table mapping to multiple objects?

2004-02-26 Thread Kenneth Foo
Hi..   Is it possible to map multiple objects to one table? I tried it and it gave me wrong objects! :-/   I have 1 table, which is modelled by 2 different objects. Reason for this is that the 2nd object hold large BLOB data, so I'd like to keep them separate for performance reasons.     My

[Hibernate] adding Criteria.count() method

2004-02-26 Thread Fu Gui
Why do we not fix and close it? Votes:11, it is a large number in jira. Key:HB-474 Type: Patch Status: Open Priority: Major Reporter:Chris Nelson Votes:11 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps

Re: [Hibernate] adding Criteria.count() method

2004-02-26 Thread Christian Bauer
On 26 Feb (17:14), Fu Gui wrote: > Why do we not fix and close it? Votes:11, it is a large number in jira. Because it sucks. -- Christian Bauer [EMAIL PROTECTED] http://www.hibernate.org/ --- SF.Net is sponsored by: Speed Start Your Linux A

[Hibernate] bidirectional many-to-many

2004-02-26 Thread Kevin Hagel
I'm putting together an example demo for some students (like I'm the expert :-\) and I'm using XDoclet, Tomcat, and MySQL for it all. Person, abstract class extended by (joined-subclass) Teacher and Student, with just an extra field in each, such as Course and Grade to show the polymorphism. I'

Re: [Hibernate] adding Criteria.count() method

2004-02-26 Thread Greg Handi
Last time I checked it was 12 votes and there already is a patch. ;) However, what's the point of using a patch that will be more of a problem to maintain and have to keep patching on each new version than a deprecated API? You may not want the API to go that way and that's fine, but it's been qui

Re: [Hibernate] adding Criteria.count() method

2004-02-26 Thread Emmanuel Bernard
Christian Bauer wrote: On 26 Feb (17:14), Fu Gui wrote: Why do we not fix and close it? Votes:11, it is a large number in jira. Because it sucks. And in a more diplomatic way. We've the feeling this is not the way the API should be. We're thinking on a better API. The worst scenar