Re: [Hibernate] Patch to automatically load hibernate objects from an HttpRequest submitted

2003-09-23 Thread Rob Butler
This kind of thing is handled automatically, and very robustly in the Spring framework. The Spring framework also supplies good integration with Hibernate, and a very cool and innovative configuration system. You should check it out. The next web app I build will use Spring. www.springframework

[Hibernate] Patch for reference docs

2003-09-23 Thread Matt Hall
I wrote an example section for ordered lists in the Collections Mapping chapter and submitted it as a patch ( http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-359 ) against the source XML file. Could you let me know if these sorts of patches are needed/welcome, an

[Hibernate] Tomcat and DBCP: Address already in use error

2003-09-23 Thread netizen1
I've been searching everywhere and cant seem to find a solution: Using Windows XP, JTDS, SQL Server 2000, and Tomcat 4.1.27, Hibernate 2.0.3. I have a servlet that i call during when i first start tomcat: The follogin code is used to initiate Hibernate: private static Properties goDatabasePropert

[Hibernate] Lifecycle methods for external listeners

2003-09-23 Thread Jason Carreira
I think it would be very valuable to be able to register listeners for Lifecycle events OUTSIDE the class itself. i.e. I could register a listener to be called for every save, update, delete for a particular class (or a particular instance) which could also veto the update, etc. Has this been dis

[Hibernate] Patch to automatically load hibernate objects from an HttpRequest submitted

2003-09-23 Thread Matt Hall
I've submitted a patch to JIRA ( http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-357 ) to alleviate some of the drudgery of web work with hibernate, specifically the need to set all of your fields in an object from an HttpRequest coming back from a form. I do th

RE: [Hibernate] Interface / Implementation separation and XDoclet

2003-09-23 Thread Aapo Laakkonen
> I'm crossposting this to xdoclet-devel... Ok, but wait! This is not so easy to solve as I first thought. I attached examples: - User.java (User Interface) - UserImpl.java (User implementation that Hibernate should use) What I'm after is that I should not have to know UserImpl in anywhere in my

[Hibernate] Impossible to make a query in Hibernante

2003-09-23 Thread Laurent Fleuriot
Hi,   I would like to have the query Hibernante of this query sql :   select document.pbl_id from pbl_version_doc documentleft join reponse on reponse.VPr_ID = document.VPr_IDleft join reponse_pbl_sit on (reponse_pbl_sit.rps_id = reponse.rps_id  and reponse_pbl_sit.vst_id <> '472a03cb4971e3c

RE: [Hibernate] Interface / Implementation separation and XDoclet

2003-09-23 Thread Aapo Laakkonen
> Well, if you state your class to be mapped > explicitely... Yes, that's true. The only place where I can put my Xdoclet tags is concrete implementation, because @hibernate.class tag does not have attribute where I could tell the implementation so it generates mapping correctly. Maybe this can b

RE: [Hibernate] Interface / Implementation separation and XDoclet

2003-09-23 Thread Aapo Laakkonen
> You can put it anywhere! We search all > superclasses and superinterfaces. Yes, but if I put them in interface, then how can Hibernate ever get to know about concrete implementations (or does it need to know anything about them?) as there is no pointers anywhere that tell this (only interfaces t

Re: [Hibernate] Interface / Implementation separation and XDoclet

2003-09-23 Thread Gavin King
You can put it anywhere! We search all superclasses and superinterfaces. Aapo Laakkonen wrote: Where should I put Xdoclet tags, in interface or concrete implementation class? Here is example (user interface): package com.fchaps.model; /** * The User * * @hibernate.classtable="usr" *

[Hibernate] hsqldb and IDENTITY columns

2003-09-23 Thread Aapo Laakkonen
SchemaExport and hsqldb. hsqldb does not allow BIGINT as a IDENTITY column (INTEGER is ok), so schema export will fail. Also in hsqldb there should be "if exists" statement after drop clauses. --- This sf.net email is sponsored by:ThinkGeek We

Re: [Hibernate] Compilation errors in v21branch

2003-09-23 Thread Daniel Bradby
It's working fine here. Maybe because you are checking out via anon CVS on Sourveforge you have a stale copy. Giedrius Trumpickas wrote: Hi, I'm getting bunch of compilation errors in v21branch. Anyone else expiriencing these problems ? Most of these errors releated to the new features for pro