[Hibernate] Using XDoclet's hibernate task

2003-02-16 Thread Simon Stewart
The Hibernate samples that ship with XDoclet beta 2 and the xdoclet page on the wiki are very useful, but there are a few questions I have, and I was wondering whether this is the right place to ask them, or if the forum is a more sensible place to go? The main thing that I am curious about is

[Hibernate] Using XDoclet's hibernate task

2003-02-16 Thread Simon Stewart
The Hibernate samples that ship with XDoclet beta 2 and the xdoclet page on the wiki are very useful, but there are a few questions I have, and I was wondering whether this is the right place to ask them, or if the forum is a more sensible place to go? The main thing that I am curious about is

Re: [Hibernate] Anyone up yet another philosophical comparison :)

2003-01-23 Thread Simon Stewart
On Thursday, Jan 23, 2003, at 08:01 Europe/London, [EMAIL PROTECTED] wrote: I am sceptical until I see something work in practice. I have never ever worked on a site where, once a system was in production, the DBA would let me use my litte auto-schema-updater on the live database. I think thi

[Hibernate] Using factory methods to obtain new instances

2003-01-23 Thread Simon Stewart
Just a quick query: as I understand it, each Object that uses Hibernate for persistence needs to have a concrete class with an empty constructor. How hard would it be to modify Hibernate to call a method on a factory class instead of "new"? And how hard would it be to be able to pass a referenc

[Hibernate] XDoclet task fails

2002-12-10 Thread Simon Stewart
Hibernate's XDoclet task (fresh from the CVS ;) appears to have a small buglet. If the "force" property is set to "false" then the second time that XDoclet goes to generate the mappings the following exception is thrown: [hibernatedoclet] Running [hibernatedoclet] java.lang.StringIndexOutOf

Re: [Hibernate] JBoss and Hibernate

2002-11-29 Thread Simon Stewart
On Friday, Nov 29, 2002, at 17:09 Europe/London, Max Rydahl Andersen wrote: Notice the last line :) Oh, the shame! I'll just go back and RTFM a little longer. How could I have missed that! :) Workaround: Make your own generator that makes a direct connection to do the same thing :) Maybe we s

[Hibernate] JBoss and Hibernate

2002-11-29 Thread Simon Stewart
Using JBoss 3.0.4, the Apple OS X JDK 1.4DP6 and Postgres 7.2.2 it is impossible to persist objects using Hibernate (beta4). When using code similar to: Person p = new Person(); Session sess = Hibernate.openSession(); sess.save( p ); // Exception thrown here // Close session properly. The follo