[Hibernate] State of the Hibernate2 codebase?

2003-01-23 Thread Schnitzer, Jeff
I was wondering, how usable is the Hibernate2 codebase right now? Obviously I'm not looking to rush it into production, but I have a project that would be a suitable guinea pig if Hib2 compiles and (mostly) works... Thanks, Jeff --- This SF.NET

RE: [Hibernate] saveOrUpdate()

2003-01-23 Thread Gavin . King
Yes, I'm glad you raised this Ara, there are a couple of different things I've been speculating about here: (1) An isDirty() interceptor callback, to allow an application to implement its own dirty checking algorithm (2) A new property attribute; update="never|auto", to declare "readonly"

RE: [Hibernate] saveOrUpdate()

2003-01-23 Thread Ara Abrahamian
What about a isModified()? For tracking modification. Is it possible to add a modification-tracking="true" to a and let Hibernate decide whether an object is modified (a setter method actually changed a property, etc) and then only update that modified object and that specific field only? Ara.

[Hibernate] Using factory methods to obtain new instances

2003-01-23 Thread Gavin King
Yes, I am very open to this; not only for instantiation, but also for *proxy* instantiation. My motivation for this is integration with AOP frameworks. How I propose to do this is to add some more methods to Interceptor in Hibernate2. (It is currently possible by extending EntityPersister, but tha

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

2003-01-23 Thread Gavin King
>> Was I a little harsh on this guy? Sorry ;) > Just got your last point, cos it's only fair to point out that if this > is a Martin Fowler backed project, the chances are that this has been > developed in an "Extreme" manner, and probably has the easy support of > extreme programming in mind as o

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

2003-01-23 Thread Matt Raible
So is it possible to get a parent w/ children and only make a call to update(parent)? From your e-mail below, I gathered that I could change my storeObject() method to use update() rather than saveOrUpdate() and everything would work peachy-keen. Nope, I still get the same error - so obviously th

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

2003-01-23 Thread Max Rydahl Andersen
> > Was I a little harsh on this guy? Sorry ;) > > Just got your last point, cos it's only fair to point out that if this > is a Martin Fowler backed project, the chances are that this has been > developed in an "Extreme" manner, and probably has the easy support of > extreme programming in mind as

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

Re: [Hibernate] TODO

2003-01-23 Thread Max Rydahl Andersen
> * add @tag generation to hbm2java If anyone can point me to an example of what is expected for this generation, then i'll be glad to look into this one. /max --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + Li

[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] New appreach for alias names

2003-01-23 Thread Gavin . King
Mark, thanks for the patch - but would you please submit this to the patch manager? I havn't been able to find time to review this, and I don't want it to get lost in the list sorry about that.. TIA Gavin

Re: [Hibernate] saveOrUpdate()

2003-01-23 Thread Gavin . King
Its perfectly possible to let the object decide with this new functionality; just define an interface with an isPersistent() method thats implemented by the persistent classes. Let the interceptor call that method, if the passed object implements the interface, otherwise return null and Hibernate

Re: [Hibernate] saveOrUpdate()

2003-01-23 Thread Max Rydahl Andersen
> Since I seem to be spending *so* much time with problems relating > to saveOrUpdate() functionality, I decided to provide some new > functionality. > > The Hibernate2 interceptor interface now has a > > Boolean isUnsaved(Object) > > method, so that the application can use something completely > d

[Hibernate] saveOrUpdate()

2003-01-23 Thread Gavin . King
Since I seem to be spending *so* much time with problems relating to saveOrUpdate() functionality, I decided to provide some new functionality. The Hibernate2 interceptor interface now has a Boolean isUnsaved(Object) method, so that the application can use something completely different to unsav

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

2003-01-23 Thread Gavin . King
I suppose I'm overstating this case a little. I guess it might be slightly helpful when deploying to a staging server with "live" data. But I still don't see it really working in practice. >> I am sceptical until I see something work in practice. I have never ever worked on a site where, once a s

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

2003-01-23 Thread Gavin . King
Yes, which is problematic if you plan to use a common Hibernate architecture where the actual data model objects are exposed to the User Interface, even in a three-tiered application. True transparent persistence lets you do this in a philosophically pleasing way.

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

2003-01-23 Thread Gavin . King
>> Don't Load More Data Than You Have To << But hey! thats only half the story! Also: Don't hit the database more *often* than you have to. So you ALSO need outerjoin fetching where appropriate! >> Tell Me What Has Changed. Don't Make Me Look! << These arguments go to performance. So where a

Re: [Hibernate] any successful story with hibernate?

2003-01-23 Thread Gavin . King
Agreed; I know quite a few people have told me of their successful projects via private email, but would it be possible to share these stories in a more public way? Just today, someone was telling me how they have just finished porting their entity-bean based project to Hibernate to (successfully

[Hibernate] Anyone up yet another philosophical comparison :)

2003-01-23 Thread Max Rydahl Andersen
http://jaxor.sourceforge.net/ A persistence layer "backed up" by the all and mighty Martin Fowler :) Got some nice ideas...but one point made me wonder if Hibernate could do same/better/worse!?: On http://jaxor.sourceforge.net/whyJaxor.htm there is four headlines: Don't Load More Data Than You H

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

2003-01-23 Thread Max Rydahl Andersen
Almost forgot a "hidden" fact :) It does not seem Jaxor supports "transparent" persistence - e.g. the beans need to be somewhat specieal and provide methods for the persistencelayer to work...net.sourceforge.jaxor.example.domain.BaseEntityInterface for which an example can be found at: http://jaxo

[Hibernate] any successful story with hibernate?

2003-01-23 Thread jiesheng zhang
Hi, guys I am currently designing a Java project. I'd like to use a Object relational mapping tool to manage the persistnece layer. My friend suggests hibernate for me. Other people also warns me about the capability of Object relation mapping solution. This makes me worry about the hibernate capa

[Hibernate] [ hibernate-Patches-672865 ] Fix for too-long column name aliases

2003-01-23 Thread SourceForge.net
Patches item #672865, was opened at 2003-01-22 17:22 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428710&aid=672865&group_id=40712 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Mark Woon (unkyaku) Assigned to: Nobody/Anonymous

[Hibernate] [ hibernate-Patches-672865 ] Fix for too-long column name aliases

2003-01-23 Thread SourceForge.net
Patches item #672865, was opened at 2003-01-22 17:22 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428710&aid=672865&group_id=40712 Category: None Group: None Status: Open Resolution: None >Priority: 8 Submitted By: Mark Woon (unkyaku) Assigned to: Nobody/Anonymou

Re: [Hibernate] Top level collection but need long transaction

2003-01-23 Thread Gavin . King
Don't use toplevel collections because we have removed them from 2.0. (Your use case is correct, however.) "Toni Charlot"

[Hibernate] [ hibernate-Patches-670213 ] Support decode in addition to ANSI-style case

2003-01-23 Thread SourceForge.net
Patches item #670213, was opened at 2003-01-18 20:58 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428710&aid=670213&group_id=40712 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Simon Harris (haruki_zaemon) Assigned to: Nobody/

[Hibernate] [ hibernate-Bugs-672639 ] HB2 generating incorrect join query

2003-01-23 Thread SourceForge.net
Bugs item #672639, was opened at 2003-01-23 06:08 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428708&aid=672639&group_id=40712 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Simon Harris (haruki_zaemon) Assigned to: Nobody/Ano

[Hibernate] [ hibernate-Patches-670213 ] Support decode in addition to ANSI-style case

2003-01-23 Thread SourceForge.net
Patches item #670213, was opened at 2003-01-18 20:58 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428710&aid=670213&group_id=40712 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Simon Harris (haruki_zaemon) Assigned to: Nobody/

[Hibernate] [ hibernate-Bugs-672639 ] HB2 generating incorrect join query

2003-01-23 Thread SourceForge.net
Bugs item #672639, was opened at 2003-01-23 06:08 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428708&aid=672639&group_id=40712 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Simon Harris (haruki_zaemon) Assigned to: Nobody/Ano

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] New Logo

2003-01-23 Thread Gavin . King
Sorry, Christian I've been trying to get onto IRC to talk to you about a number of things but just SO busy gr . Thanks for putting this together!

[Hibernate] Top level collection but need long transaction

2003-01-23 Thread Toni Charlot
Top level collections are what I thought of using at first but I have a need for long transactions. I read in the doc that sess.update(obj) can not be called on objects with top level collection elements Person contains a Collection of Address objects Customer contains a collection of Address obj