[Hibernate] Re: No CLOB support?

2002-11-29 Thread Dave Johnson
I'm looking for a work around and Matt Veitas may help. I'll let you know what I come up with. - Dave Mark Woon wrote: Dave Johnson wrote: > This seems to indicate that the latest version of > Hibernate (1.2rc1) does not have support for CLOBs. > Is this true? Believe so. > Without support

Re: [Hibernate] Re: No CLOB support?

2002-11-29 Thread Mark Woon
Dave Johnson wrote: This seems to indicate that the latest version of Hibernate (1.2rc1) does not have support for CLOBs. Is this true? Believe so. Without support for CLOBs is there any way use Hibernate to persist fields longer than 255 characters? What type should I use in my mapping file?

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

Re: [Hibernate] JBoss and Hibernate

2002-11-29 Thread Max Rydahl Andersen
This is expected behavior, snippet from the docs: hilo.long Uses a hi/lo algorithm to efficiently generate identifiers of type long, given a table and column (by default "hibernate_unique_key" and "next" respectively) as a source of hi values. The hi/lo algorithm generates identifiers that are un

[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

[Hibernate] Re: No CLOB support?

2002-11-29 Thread Dave Johnson
Hi 'bernators, Sorry I did not explain myself more clearly in my first message. I'm working on a example application to show how to create a pluggable persistence layer using the DAO pattern. I want to implement my DAOs using both Castor and Hibernate so that I can compare and contrast the two fra

[Hibernate] No CLOB support?

2002-11-29 Thread Dave Johnson
Without CLOB support, there is no way to store a string longer than 255 characters? - Dave --- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/re

[Hibernate] Re: unsaved-value for assigned identifier

2002-11-29 Thread Tat Leong Chong
I have a question when using the update(obj, serializable_id_class) I have the composite id. I wonder if should I create serializable_id_class before I could update? Let say Create serializable class sound is sth like creating Class_PK of the BMP, right? Cheers; Jeff --- "Gavin King" <

[Hibernate] auto drop & create schemas

2002-11-29 Thread Pablo I. Lalloni
I was wondering if it's possible to add an auto drop & auto create schema feature to hibernate, something similar as the and in jboss-cmp. This could be easily added inside the tag as elements or as attributes. true true . . or

Re: [Hibernate] Enhancements to the Hibernate Xdoclet subtasks

2002-11-29 Thread Gavin King
Yeah sure. I will make a support request to SourceForge staff - Original Message - From: "Max Rydahl Andersen" <[EMAIL PROTECTED]> To: "Gavin King" <[EMAIL PROTECTED]>; "Joel Rosi-Schwartz" <[EMAIL PROTECTED]> Cc: "hibernate list" <[EMAIL PROTECTED]> Sent: Friday, November 29, 2002 1:2

[Hibernate] Re: unsaved-value for assigned identifier

2002-11-29 Thread Gavin King
saveOrUpdate() doesn't interact well with assigned identifiers, as you have observed. The solution is to use explicit save() or explicit update(). ie. the application must decide wether the object is to be saved or updated, because the identifier property can't give us any useful information. ---