-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: butler.sourceforge.net
PostPosted: Tue Nov 30, 2004 7:10 pm 
Newbie

Joined: Tue Nov 30, 2004 6:52 pm
Posts: 2
Hi I am wondering if it wouldn't be easier to use butler (or some lib alike) to abstract the sql code generation?
Thus instead of hibernate generating the sql statements as string it would generate an sql expression tree using butler primitives. An evaluate function then would generate "per jdbc provider" the sql string for wished statement.

Does anybody see reason not to do so?

Cedric


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 01, 2004 4:06 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you mean hibernate should use butler internally ?

well, dude - have you looked at the code ? We are actually building most of the sql with a kinda sql-expression-like stuff. And having a dependency on yet-another-library is not our biggest wish for xmas.

If you are asking wether it's better to use butler instead of hibernate - then oh, well - you can probabably guess what i'll recommend ;)

As always: Use the right tool for the job. (and coincidentally most of my jobs the right tool have been hibernate ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Right tool for syncro
PostPosted: Thu Dec 02, 2004 5:37 pm 
Newbie

Joined: Tue Nov 30, 2004 6:52 pm
Posts: 2
I already use hibernate and it make the job even better than I could expect it for an ORM, congratulation !!!
Yes, internaly. OK, the Dialect class with sql package does roughly this on strings...sorry.

I was just looking for an easy syncronization method between heterogenous db, do you know any?
I read hibernate code in hope to find a Java RDB model and sql-db ready-to-use (Schema, Table, Row, Constraints, SQL expression not based on strings) and didn't found one..thus I look at butler?!?....and I now found them also in hibernate "mapping" and "sql" package , Lucky week;-)

Thanks a lot and all my best wishes for xmas

Ced'


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.