Re: [Hibernate] Mail Archive

2003-07-31 Thread Gavin . King
Done! :) |-+---> | | "Brian Topping" | | | <[EMAIL PROTECTED]> | | | Sent by:| | | [EMAIL PROTECTED]| | |

Re: [Hibernate] HQL, User defined type

2003-07-31 Thread Gavin . King
Hibernate.custom(MyType.class) |-+---> | | Jenica Humphreys| | | <[EMAIL PROTECTED]> | | | Sent by:| | | [EMAIL PROTECTE

[Hibernate] Hibernate 2.1 Branch

2003-07-31 Thread Gavin King
I've created a new branch in CVS: v21branch This branch will be used for development of Hibernate 2.1 features. Currently it includes a reworked collection loading algorithm and an implementation of batch loads for collections. All working very nicely, far as I can tell. I will have batch loads f

Re: [Hibernate] Uniqueness of fields

2003-07-31 Thread Gavin . King
yes: unique-key="name" |-+---> | | Miroslav Lazarević | | | <[EMAIL PROTECTED]>| | | Sent by:| | | [EMAIL PROTECTED]| |

Re: [Hibernate] hbm2java newbie problem

2003-07-31 Thread Gavin . King
What JDK is it? this is a very weird problem that people sometimes observe I think we manged to trace it down to a JVM bug. If you are able to help me reproduce this in my environment, I'd really appreciate it. |-+---> | |

[Hibernate] Querying s and s

2003-08-02 Thread Gavin King
This has been a huge missing feature since ancient versions of Hibernate. I sat down today and got it 90% done in about 3 hours. Much easier than I feared. Theres still a bit of work to go on this to finish it off, but its useful already. eg. from Foo foo join foo.setOfStrings string where str

Re: [Hibernate] FW: externalize SQL

2003-08-03 Thread Gavin . King
Hibernate 2.1 will support queries written in SQL so yes, it will be possible, essentially. Take a look at the latest Road Map on the wiki. |-+---> | | "Morgan, Jennifer" | | | <[EMAIL PROTECT

Re: [Hibernate] Feature idea

2003-08-03 Thread Gavin . King
Yes, I can certainly see the attraction - and it *has* been requested before. It would be nice to be able to plug in a something like: NamingStrategy strategy = new MyCustomNamingStrategy(); Configuration cfg = new Configuration(); cfg.setNamingStrategy(strategy); perhaps we could even allow th

Re: [Hibernate] Joined-subclass with Hibernate and XDoclet

2003-08-03 Thread Gavin . King
Have you set in the ant script? |-+---> | | "Robb Greathouse" | | | <[EMAIL PROTECTED]>| | | Sent by:| | | [EMAIL PROTECTED]| |

[Hibernate] Mass Deletes

2003-08-03 Thread Gavin . King
Many users have asked for session.delete("from Foo foo where foo.count=0"); to issue a single SQL DELETE. This is certainly not possible for objects with collections or cascades (though it might not matter if we ignore Lifecycle callback; not sure). For other classes it is conceptually possi

Re: [Hibernate] Mass Deletes

2003-08-04 Thread Gavin . King
Sorry! I thought of that one, but forgot to write it down! Its probably the best option, actually, though less transparent to the user. |-+> | | "Domagoj | | | Jugovich"| | | <[EMAIL PROTE

Re: [Hibernate] Mass Deletes

2003-08-04 Thread Gavin . King
Note that the single problem with this is that objects that _aren't_ actually being deleted (and that might be referenced by the application) are suddenly evicted - and any subsequent modifications are lost. Actually, the disable-when-instances-are-loaded option can almost be used to emulate the

Re: [Hibernate] Mass Deletes

2003-08-04 Thread Gavin . King
AFAICT, databases do not support DELETEs with joins |-+> | | Max Rydahl | | | Andersen | | | <[EMAIL PROTECTED]> | | || | | 04/08/03 06

Re: [Hibernate] JCA RollBack

2003-08-05 Thread Gavin . King
>>> The other problem and perhaps Gavin has some input on this, is that when you make use of the proxy feature, it appears that the proxy keeps a refernce to the session that was used to create that proxy. So if the connection is getting closed between SB calls this proxy object fails when passed

[Hibernate] Refactored Persistence Logic

2002-09-24 Thread Gavin King
I would appreciate if people would look over and try to understand the new design.I would like to get as much input into this stuff as possible. My goal was to cleanly seperate logic that is general to Hibernate's model of entities/components/values/collections from code that implements a particula

Re: [Hibernate] ClobType

2002-10-17 Thread Gavin King
The fact that I don't know what I think is the main reason I've never added a ClobType before. I'm assuming that the best way would be to somehow provide access to the JDBC Clob object (and similarly for Blobs). Is this possible? Do you need to provide a seperate Holder class? I like the reader/wr

Re: [Hibernate] 5 meg worth of hibernate.....

2002-09-15 Thread Gavin King
s.jar, commons-lang.jar, c3p0.jar, commons-dbcp.jar, commons-pool.jar, commons-collections.jar but Hibernate wouldnt compile without them - Original Message - From: "Gavin King" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, September 15, 2002 5:53 PM Subject:

Re: [Hibernate] support for dynabeans

2002-10-13 Thread Gavin King
> Hadnt thought of that, thanks, > > Would it be possible to add my definitions to the DataStore, and then > recreate or reinitialize the SessionFactoryImpl? > > Then I could build a guy where the user can define his new tables, and > modify just the DataStore, and when he clicks on "apply", i upd

Re: [Hibernate] Another bug (this is not my lucky day...)

2002-10-24 Thread Gavin King
Ah, yeah I can see how that could happen. I'll fix it tomorrow. This is a fairly new bug, I think. - Original Message - From: "Andrea Aime" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 25, 2002 1:23 AM Subject: [Hibernate] Another bug (this is not my lucky day...) >

Re: [Hibernate] Question about onUpdate

2002-09-11 Thread Gavin King
> It appears to me that the onUpdate() method is not getting called when it should. onUpdate() gets called only when you explicitly pass a transient object to Session.update(). ie. its called when a transient object becomes "sessional". Its not called when an dirty object is UPDATEd on the databas

Re: [Hibernate] try/finally in testcode ?

2002-11-03 Thread Gavin King
> They don't stop, do they ? They halt - and waitand waits...and waits :) Interestingly *enough*, that depends upon the JDBC driver Its all part of "write once, run anywhere".. ;) --- This sf.net email is sponsored by: See the NE

Re: [Hibernate] How to create an index on normal property element ?

2002-11-25 Thread Gavin King
Yick! but it looks like the property isn't really called "ownernumber"; perhaps you meant "ownerNumber"? - Original Message - From: "Jochen Rebhan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Gavin King" <[EMAIL PROT

Re: [Hibernate] writing the properties of a persistent object to a string

2002-10-02 Thread Gavin King
> ...or am I being thick, and most stringifying can pretty much be done with > toXML and an appropriate stylesheet? > yup, thats exactly the idea --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.co

[Hibernate] Would someone try out this MS SQL server driver?

2002-11-05 Thread Gavin King
I never noticed this project before: http://jtds.sourceforge.net/ I don't have MSSQL installed on this machine to try it out, though. --- This SF.net email is sponsored by: ApacheCon, November 18-21 in Las Vegas (supported by COMDEX), the onl

RE: [Hibernate] Re: [Hibernate-commits] Hibernate/cirrus/hibernate/test FooBarTest.java,1.237,1.238 MultiTableTest.java,1.21,1.22

2002-12-31 Thread Gavin King
IBM JVM returns reflected methods in the reverse order. So if some test deosn't clean up after itself, it might fail on one JVM but not the other :) > -Original Message- > From: Max Rydahl Andersen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 31 December 2002 12:16 AM > To: [EMAIL PROTECTED

RE: [Hibernate] Using CLOBs

2002-12-31 Thread Gavin King
The name of the type is "clob", and the expected property type is java.sql.Clob. Note that there are restrictions upon what you can do with Clobs (they can't be used outside of transaction, for example). You should also take notice of Hibernate.createClob(). > -Original Message- > From: U

Re: [Hibernate] Delete bug (and fix)

2002-10-20 Thread Gavin King
The reason it doesn't check list!=null is that find() is never supposed to return a null list How did you make that happen?? Do you have a stacktrace, etc? > I've found a bug that causes a NPE in the Session.delete(String query) > implementation: if you pass a query that return no objects yo

RE: [Hibernate] Tools road map

2002-12-31 Thread Gavin King
My comments are now added in /italics/ on the page itself... > -Original Message- > From: Max Rydahl Andersen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 31 December 2002 7:16 AM > To: [EMAIL PROTECTED] > Subject: [Hibernate] Tools road map > > > I've been so "insane" to plot down a "roa

Re: [Hibernate] Another problem: jmx vs static initialization

2002-10-24 Thread Gavin King
Yup, thats right. - Original Message - From: "Urberg, John" <[EMAIL PROTECTED]> To: "'Andrea Aime'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, October 24, 2002 11:15 PM Subject: RE: [Hibernate] Another problem: jmx vs static initialization > >> Your question is timely, I wa

RE: [Hibernate] Hibernate XDoclet Task

2002-12-31 Thread Gavin King
> * Is there any chance to add predefined queries to the > generated mapping? Ummm, I thought theres was a @hibernate.query tag > * Is there any chance to generate the bean-pattern > (setXXX(), getXXX() >and especially the addXXX(Child)/setXXX(Parent)) methods of the >java-bean class

RE: [Hibernate] CodeGenerator

2002-12-31 Thread Gavin King
> > > > > > JavaDoc comment for getBar() > > > > java.lang.Object > > > > . > > But this one ? Isn't this a bit "cloudy" > If I understand this correctly you want that if "java-type" > is provided the codegenerator should use that type instead of > t

[Hibernate] buglet in 1.2.1

2002-12-31 Thread Gavin King
For the new logging stuff I added something like: Log log = LogFactory.getLog( Type.class.getPackage().getName() ); Turns out that getPackage() is allowed to return null if the JVM can't be bothered implementing it. And some (but not all) versions of the IBM JVM do just that. So there is a v

[Hibernate] Please check out the new locking API

2002-10-02 Thread Gavin King
Could people do me a favor + check out the new locking API and let me know what they think. 'Cos if no-one else has any very strong opinions on this stuff, I might as well release it in the next version. TIA Gavin --- This sf.net email is spo

Re: [Hibernate] Ohhh this looks cool

2002-10-22 Thread Gavin King
> i think the difference would be marginal, as dynamic proxies also use > class generation behind the scenes... I have a suspicion it will be slightly slower with CGLIB, actually. --- This sf.net emial is sponsored by: Influence the future o

RE: [Hibernate] Contribution: Added UNIX version of demo.bat to the top directory of a release

2003-01-13 Thread Gavin King
Thanks. I added it to the Hibernate2 CVS tree :) > -Original Message- > From: Zhenlei Cai [mailto:[EMAIL PROTECTED] > Sent: Sunday, 12 January 2003 7:43 PM > To: [EMAIL PROTECTED] > Subject: [Hibernate] Contribution: Added UNIX version of > demo.bat to the top directory of a release > >

[Hibernate] Re: writing the properties of a persistent object to a string

2002-10-04 Thread Gavin King
> ( object instanceof HibernateProxy ) && ( (HibernateProxy) > object ).isUninitialized() Of course, you noticed my mistake, its really: ( object instanceof HibernateProxy ) && ( (HibernateProxy) object ).isUninitialized_() (trailing underscore) so that the methods of the Proxy are less likely

Re: [Hibernate] RE: composite-id still doesn't work for me...

2003-01-24 Thread Gavin . King
I think you need to understand how cascade="all" interacts with unsaved-value, etc. If you have cascade="all", update(parent) will pass the children to saveOrUpdate(). If the children have unsaved-value="none", they will all get updated; if they have unsaved-value="any", they will all get inserted

RE: [Hibernate] CVS doesn't compile

2002-12-12 Thread Gavin King
Silly me. Thanks. > -Original Message- > From: Mark Woon [mailto:[EMAIL PROTECTED] > Sent: Thursday, 12 December 2002 7:00 PM > To: Hibernate Mailing List > Subject: [Hibernate] CVS doesn't compile > > > FYI, > > The tree in CVS doesn't compile: > > 1) The TransactionManagerLookup int

Re: [Hibernate] State of the Hibernate2 codebase?

2003-01-24 Thread Gavin . King
Hi Jeff, theres a little bug in Hibernate2 SQL generation that has been pointed out in the forum, but it would only affect table joins accross tables with common column names. Anyway, I will fix that tonight or first thing tomorrow, so it will definately be fine for Monday. Apart from that, it i

[Hibernate] limit (was: problems with date comparision)

2003-01-18 Thread Gavin King
> Uh, LIMIT and OFFSET are not supported? setMaxResults() and setFirstResult() are supported. They achieve the same thing. > This may not be standard SQL, but some DBs > that Hibernate supports do support that SQL > extension. As far as I can tell, each database has its own syntax for this. Quer

Re: [Hibernate] jcs cache

2003-01-18 Thread Gavin King
The cache is not used for *queries*. It is used for calls to load() and for resolving associations. Also note that the cache does not store actual Vertex instances; it stores a *copy* of the state of the vertex. So an instance retrieved from the cache will always be a different instance from the

Re: [Hibernate] Glarch$$EnhancedByCGLIB$$3 (Repeative method name/signature) and deadlock!

2002-11-03 Thread Gavin King
I just did a CVS diff and ran tests from the Ant script. All is working. Let me check that cglib.jar has -kb - Original Message - From: "Max Rydahl Andersen" <[EMAIL PROTECTED]> To: "Max Rydahl Andersen" <[EMAIL PROTECTED]>; "Gavin King&quo

Re: [Hibernate] saveOrUpdate()

2003-01-24 Thread Gavin . King
You'll probably also be happy with the new refresh() method in Hibernate2 then, I imagine ;) > I'd love to see #2, since there are quite a few things in my system that > gets update by triggers, and I've been quite worried that these fields > might get overwritten. #1 and #3 are nice to haves, b

Re: [Hibernate] Metadata, codegenerator et.al...

2002-10-24 Thread Gavin King
> But now we do not NEED the proxies so it is better now, but not perfect > (since someone might > like to have proxies :) You still need proxies for polymorphic persistence. Check out the latest doco on the website for an explanation.. > Any suggestions on formats/semantics of it all ? (pr

Re: [Hibernate] Whats the correct NUMERIC type for *your* database?

2002-09-23 Thread Gavin King
Cool! Thanks, Doug... Do you know if you need to specify a precision and/or scale value for NUMERIC columns in McKoi ... ie. is there some dumb default value like scale=0? - Original Message - From: "Doug Currie" <[EMAIL PROTECTED]> To: "Gavin King" <[E

Re: [Hibernate] JCS cache - Distributable read-write

2002-09-20 Thread Gavin King
> --> The session hold a set of the items that have been updated/deleted in the transaction, > when the transaction commit, we iterate the set and remove each entry from the cache. but merely removing is not enough, because after removal, another transaction (that started *earlier*) could come al

Re: [Hibernate] Hooking into Hibernate classloader

2002-11-06 Thread Gavin King
I think its better to do this kind of thing by subclassing EntityPersister and overriding instantiate(). However, that will not work properly in the current implentation (for example getPersister( object.getClass() ) would fail). Would you please investigate what kind of changes would be required t

[Hibernate] Re: Jmx error in 1.1.5

2002-10-19 Thread Gavin King
Ah. heh. yeah thats a misprint, isnt it. Thanks - Original Message - From: "Andrea Aime" <[EMAIL PROTECTED]> To: "Gavin King" <[EMAIL PROTECTED]> Sent: Sunday, October 20, 2002 1:57 AM Subject: Re: Jmx error in 1.1.5 > Because the li

Re: [Hibernate] XML Mapping Option: class prefix

2002-11-16 Thread Gavin King
I can see how this would be nice, but hibernate.query.imports already makes me feel a bit quesy (and can be a source of bugs). I don't really wish to compound this by introducing a similar thing into the mapping files. - Original Message - From: "Donnerstag, Juergen" <[EMAIL PROTECTED]> T

Re: [Hibernate] set, bag and list

2003-01-30 Thread Gavin . King
Either Set or bag could be faster, depending upon the situation. Neither require an column. Hibernate bags are actually java.util.Lists because the java collections framework has no Bag.

Re: [Hibernate] Hibernate2UML

2002-10-26 Thread Gavin King
Yeah that would be cool. I think with the new *Metadata interfaces its also quite easily doable. I don't know much about xmi myself but if you do, I think you would be able to implement this quite straightforwardly - Original Message - From: "Ampie Barnard" <[EMAIL PROTECTED]> To: <[EM

Re: [Hibernate] interface and implemenation mapping

2003-01-30 Thread Gavin . King
Ignore the interface A. jiesheng zhang

Re: [Hibernate] Using hibernate - best practices

2002-11-16 Thread Gavin King
>If someone were to implement the sessionFactory as a JCA connector, all of >this code would become the responsibility of the container. It would also do >the propagation of transaction contexts. I am looking into implementing a JCA connector, by the way ---

[Hibernate] Whats the correct NUMERIC type for *your* database?

2002-09-23 Thread Gavin King
Hi everyone, in response to a user request, I'm adding a BigDecimal type. According to the JDBC spec, the correct mapping for this type is Types.NUMERIC. So we need to go ahead and add a NUMERIC type to all the dialects. To make this a bit easier, would people please let me know what database colu

Re: [Hibernate] hib2 - parent in composite-element

2003-01-31 Thread Gavin King
Thats perfectly fine its just doing a deep copy, for the purposes of dirty checking, so it doesn't need the parent. Of course it also doesn't need to call setParent()! ;) I will remove that call, but its harmless, so don't worry about it. - Original Message - From: "Viktor Szathm

Re: [Hibernate] collections (in one-to-many, many-to-one, etc..)

2003-01-20 Thread Gavin . King
s.saveOrUpdate(p); s.flush(); s.close(); And if the friends relationship (many-to-many) would have been children instead (many-to-one), then Gustav, Sabrina and Bond's parent key woud have been nulled (via an update) and then afterwards Gustav and Bond's would be again updated, right ? D

Re: [Hibernate] hib2 - parent in composite-element

2003-02-03 Thread Gavin . King
Yeah, don't worry about the call from deepCopy(). I removed that in the latest CVS, since it was unnecessary. It should not have been actually *harmful*, however.

Re: [Hibernate] DynaBean components

2003-01-20 Thread Gavin . King
this one ? (One could argue that dynamically extending the schema is a Bad Thing - but I won't - not yet :) /max - Original Message - From: "Gavin King" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, January 19, 2003 1:04 PM Subject: [Hibernate] DynaBea

RE: [Hibernate] Lazy Collections

2002-12-03 Thread Gavin King
I had a *really* close look into the possibility that Hibernate issues the unclosed session WARNing when the session has in fact been closed and I've concluded that it doesn't. I am quite certain that the problem is that the user is not closing the sessions. (In a couple of previous complaints abou

RE: [Hibernate] Lazy Collections

2002-12-03 Thread Gavin King
I agree. Furthermore there are some serious conceptual problems with regards to ensuring transaction isolation and also potential performance problems if a single task required multiple connections to the database. -Original Message- From: Max Rydahl Andersen [mailto:[EMAIL PROTECTED] S

RE: [Hibernate] Lazy Collections

2002-12-04 Thread Gavin King
Where are connections coming from? A Hibernate ConnectionProvider? Or an application supplied connection? What guarantees does Maverick make about when / wether discard() will be called? Is it *guaranteed* to be called in the case of an exception, etc? > -Original Message- > From: Aapo La

RE: [Hibernate] Lazy Collections

2002-12-04 Thread Gavin King
Comments inline > 04:18:56,649 WARN > [JTATransactionFactory] No TransactionManagerLookup configured > (use of JCS read-write cache is not > recommended) > > What is this setting. I get that warning even if I don't use JCS. > > This is my hibernate.properties: > >

RE: [Hibernate] Lazy Collections

2002-12-04 Thread Gavin King
Cool. You beat me to it. Thanks for the Resin-specific code - I will integrate it as soon as I get to a PC with CVS access (I've been unable to do anything the past few days.) > -Original Message- > From: Aapo Laakkonen [mailto:[EMAIL PROTECTED] > Sent: Thursday, 5 December 2002 2:06 AM >

RE: [Hibernate] saving to pgsql

2003-01-03 Thread Gavin King
That "unexpected EOF" usually occurs if somehow the connection between client and database processes is broken (eg. the VM dies). What happens if you use a sequence, instead of hi/lo generation? (And remember that you can't use HiLoGenerator in an appserver) > -Original Message- > From

RE: [Hibernate] Using CLOBs

2003-01-03 Thread Gavin King
> it *mostly* works. The only problem seems to be > that Oracle > apparently does not distinguish between zero-length strings > and NULL, so I have run into this before with Oracle. Very yucky. > if you initialize the CLOB with Hibernate.createClob(""), the actual > database column is nullifi

RE: [Hibernate] Hibernate 2

2003-01-03 Thread Gavin King
> * Rename the 'role' attribute to 'name' in all collection > elements in the new DTD, for consistency with , >and elements. The role attribute no longer > has any extra semantics beyond being a simple property > name. Done. > * Change the default for unsaved-value to "null" in the ne

[Hibernate] Re: PersistentEnum Problem

2003-02-02 Thread Gavin King
Stack Trace? --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ hibernate-devel mailing list [EMAIL PROTECTED]

Re: [Hibernate] Hibernate usage question

2003-02-11 Thread Gavin . King
Check out the "open session in view" pattern for these kind of simple applications. The basic idea is to use a servlet filter to open and close sessions.

RE: [Hibernate] Hibernate Thread Local Session and JUnit

2003-01-03 Thread Gavin King
dge, this > is a singleton - or do I need to get fancier, as this > (http://members.tripod.com/rwald/java/articles/Singleton_in_Java.html) > suggests? > > Thanks, > > Matt > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL

Re: [Hibernate] Normalized table mappings

2002-11-06 Thread Gavin King
currently MultiTableEntityPersister doesn't support loadWithLock(). So I guess thats also on the TODO list. - Original Message - From: "Wolfgang Jung" <[EMAIL PROTECTED]> To: "Gavin King" <[EMAIL PROTECTED]> Cc: "hibernate list" <[EMAIL PROTECTED]> Se

Re: [Hibernate] Looking for Volunteers

2002-10-11 Thread Gavin King
EntityLoader. So this is an important thing to finish. - Original Message - From: "Jon Lipsky" <[EMAIL PROTECTED]> To: "Gavin King" <[EMAIL PROTECTED]> Sent: Friday, October 11, 2002 4:34 PM Subject: Re: [Hibernate] Looking for Volunteers > Hi Gavin,

Re: [Hibernate] DeathMarch Error Message

2003-02-05 Thread Gavin . King
How disconcerting. The exception is being thrown by the JDBC driver and is most likely something to do with connection pooling. Looks like you should disable C3P0's prepared statement cache. (Or try some other connection pool implementation...)

Re: [Hibernate] Metadata, codegenerator et.al...

2002-10-27 Thread Gavin King
a way forward there. Now, if it turns out to be worthwhile doing this, there is one thing working in our favor. We have heaps of unit tests, so we shouldn't need to be worried about breaking things. - Original Message - From: "Max Rydahl Andersen" <[EMAIL PROTECTED]> To:

[Hibernate] Re: Jmx error in 1.1.5

2002-10-19 Thread Gavin King
m confused - Original Message - From: "Andrea Aime" <[EMAIL PROTECTED]> To: "Gavin King" <[EMAIL PROTECTED]> Sent: Sunday, October 20, 2002 1:43 AM Subject: Jmx error in 1.1.5 > Hi Gavin, > the error in cirrus/hibernate/jmx/HibernateService.java (

RE: [Hibernate] Odd Query behavior

2003-02-19 Thread Gavin . King
I've already fixed this on my local machine its just a matter of calling ps.setFecthSize(0); ps.setMaxRows(0); when re-caching the PreparedStatement. I'll commit this to CVS tonight, hopefully

Re: [Hibernate] Hibernate documentation

2002-09-24 Thread Gavin King
Fixed :) - Original Message - From: "Fay, Kevin J, ALBAS" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 24, 2002 6:44 AM Subject: [Hibernate] Hibernate documentation > I'm attempting to download the Hibernate reference documentation .pdf file and it says "The file

Re: [Hibernate] Enum

2002-10-06 Thread Gavin King
If you write a JakartaEnumType, I will integrate it into the next version. Shouldn't be too difficult. Gavin - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, October 06, 2002 5:35 AM Subject: [Hibernate] Enum > hi, > > would it be feasible to migrate

Re: [Hibernate] Dirty checking and int/boolean arrays

2003-02-11 Thread Gavin King
I was just having a look over the source of BitSet. It doesn't seem to me that it would be more performant than a simple boolean[]. (It would probably consume less _memory_, but that doesn't seem to be a very critical issue here.) Juozas, why do you expect there to be a performance gain from using

Re: [Hibernate] patch to cirrus.hibernate.jmx.HibernateService

2002-10-01 Thread Gavin King
Put it in the patch manager if you like THanks Gavin - Original Message - From: "Chris Winters" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 01, 2002 12:42 PM Subject: [Hibernate] patch to cirrus.hibernate.jmx.HibernateService > I have a patch to cirrus.hiber

[Hibernate] 1.1 final is up

2002-09-22 Thread Gavin King
Enjoy! --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/h

Re: RE: [Hibernate] CodeGenerator in Hibernate2

2003-01-31 Thread Gavin . King
Yeah, I'm not sure. I havn't had time to look at the code myself, and no response from Max.. is he on holiday or something? otisg <[EM

RE: [Hibernate] multiple beans in one table

2002-12-22 Thread Gavin King
hurry when writing that. In the > 1.2 hibernate > didn't support generating schemas where multiple beans lived > in one table. > It would generate a create table for each bean resulting in > multiple create > tables for some tables. It looks like CVS has resolved t

RE: [Hibernate] Road Map

2002-12-22 Thread Gavin King
I agree with this. It is the resposibility of the middle tier to fetch data. If it did not fulfil its part of the contract, we can't just have the web tier suddenly open connections to the database. That has all *kinds* of security implications. > I can't see any other decent way - the View laye

RE: [Hibernate] Problem with Connection Pool Timeouts

2003-01-07 Thread Gavin King

RE: [Hibernate] 2 Hibernate questions

2003-01-07 Thread Gavin King
> 1. Does Hibernate allow for fine tuning lazy > vs. non-lazy loading? That is, can I > specify when to uze lazy loading and when > not to use lazy loading? You can specify loading strategy per-association. There is no support for "fetch profiles" currently. > 2. Does Hibernate allow me to over

RE: [Hibernate] Calling Prepared Statements

2003-01-07 Thread Gavin King
Yup. session.connection().prepareStatement("yada yada") > -Original Message- > From: Raible, Matt [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 8 January 2003 6:17 AM > To: '[EMAIL PROTECTED]' > Subject: [Hibernate] Calling Prepared Statements > > > I'm guessing the best way to call pre

Re: [Hibernate] composite-id still doesn't work for me...

2003-01-23 Thread Gavin . King
Of course! Its a FAQ item that assigned ids including composite ids can't distinguish between a saved or unsaved object (you have a choice between "always update" or "always insert"). So if you want to add a new child (with unsaved-value="none"), simply save () it manually first: child.setParen

Re: [Hibernate] Bug in CharacterType...

2002-10-25 Thread Gavin King
Woops yeah, I fixed it myself ... didn't get notified of the patch. - Original Message - From: "Max Rydahl Andersen" <[EMAIL PROTECTED]> To: "Gavin King" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, October 25, 2002 9:54 PM Su

Re: [Hibernate] writing the properties of a persistent object to a string

2002-10-02 Thread Gavin King
I prefer Anton's suggestion. There used to be a method like this on the session interface A Long Time Ago but I got rid of it because I didn't think it had anything to do with persistence. On the other hand, sessionFactory.openDatabinder().toXML(foo); does a really nice job of printing an object.

Re: [Hibernate] Hooking into Hibernate classloader

2002-11-07 Thread Gavin King
Firstly, the API *should* use Class objects to reduce the possibility of runtime errors. I forget which project I saw recently that had used strings and was now moving to using class objects. Internally, we *could* use classnames, but that would be slower, right? Its much quicker to take an identit

[Hibernate] Re: Trouble with proxy implementations

2003-02-01 Thread Gavin King
Very, very cool One more request: is it possible to support this for package-visibility methods by generating the MetaClass in the same package? (Might have to have a different instance for each superclass in the hierarchy.) It would be a little bit of work to integrate this into Hibernate, b

Re: [Hibernate] Half baked idea about improved code generation

2002-09-30 Thread Gavin King
> - sets miss then not-null attribute, so I cannot judge if > they are to be included in the minimal constructor or not I *think* its reasonable to actually create a HashSet, ArrayList, etc in the minimal constructor. > (the not-null attribute should be added to set, bag, ...) H I'm not

Re: [Hibernate] CVS is broken

2002-10-23 Thread Gavin King
Yep, I know. I will get it fixed real soon. - Original Message - From: "Mark Woon" <[EMAIL PROTECTED]> To: "Hibernate Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, October 23, 2002 8:12 AM Subject: [Hibernate] CVS is broken > > > > --

Re: [Hibernate] ClassMetadata

2003-02-12 Thread Gavin . King
In Hibernate2 you can get access to this kind of stuff via the Configuration object (not from the Sessionfactory, since these things are not used at runtime).

RE: [Hibernate] Possible Bug in HQL

2002-12-27 Thread Gavin King
> Here is a query in HQL: > SELECT foo FROM foo IN CLASS Foo > WHERE foo.color='green' AND (foo.bar=? OR foo.bar.someValue='happy') > [snip] > The generated SQL-Code produces the cartesian product between > Foo and Bar: SELECT ... FROM Foo foo, Bar sim0 WHERE > (foo.color='green')AND((foo.barId

RE: [Hibernate] saveOrUpdate vs. update

2002-12-28 Thread Gavin King
Ummm theres a bunch of things to get right and since I can't see your mappings, I'm not sure which. However, you should check out the functionality of: * unsaved-value attribute of * cascade attribute of associations * lazy attribute of collections * proxy attribute of , , by fiddling with thos

Re: [Hibernate] question on H2 roadmap progress

2003-01-10 Thread Gavin . King
I committed this to the Hibernate2 module last night, in fact. I have added an interface called Configurable to the id package. Check that out to see how it works. Hibernate2 will always use default constructors to instantiate id generators. ==

[Hibernate] TODO

2003-01-23 Thread Gavin . King
Heres a list of outstanding things for the next month or so: * add @tag generation to hbm2java * finish Middlegen plugin * design new config API I will be very busy for the immediate future, so if anyone is interested in taking on any of these tasks, that would be awesome. (They are all pretty f

Re: [Hibernate] Caching

2002-10-09 Thread Gavin King
Collections are cached if (only if) they have their own subelement. - Original Message - From: Joost van de Wijgerd To: Gavin King Cc: hibernate list Sent: Wednesday, October 09, 2002 11:33 PM Subject: [Hibernate] Caching Gavin,   Relating to the

Re: [Hibernate] What would a good locking API look like?

2002-10-01 Thread Gavin King
LockMode.EXCLUSIVE_NO_WAIT - Original Message - From: "Paul Szego" <[EMAIL PROTECTED]> To: "Gavin King" <[EMAIL PROTECTED]> Sent: Tuesday, October 01, 2002 3:04 PM Subject: Re: [Hibernate] What would a good locking API look like? > > Hi, > > a no-wait opt

  1   2   3   4   5   6   7   8   9   >