-->
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.  [ 7 posts ] 
Author Message
 Post subject: PHB has no clue
PostPosted: Tue Aug 23, 2005 7:43 am 
Regular
Regular

Joined: Tue Nov 23, 2004 7:42 am
Posts: 82
Location: London, England
Our PHB is unhappy with the fact that we use Hibernate for our products because he comes from a stored procedure background and feels they are faster. Now, I don't feel we have any need for stored procedures and since I started to use Hibernate I've sworn never to go back to straight JDBC ever again.

Anyway, us developers need some firepower. Please tell me that the PHB is talking out of his backside and there would be no worthwhile performance gain from using JDBC/stored procedures in an app that really doesn't need it.

The discussion was bourne from problems with MySQL Connector/J having issues with UTF-8 encoded content. Well, we've learned things and I don't see why, just because MySQL is a completely retarded suite of half-arsed DBMS products, we should switch to JBDC.


Top
 Profile  
 
 Post subject: Re: PHB has no clue
PostPosted: Tue Aug 23, 2005 7:45 am 
Regular
Regular

Joined: Tue Nov 23, 2004 7:42 am
Posts: 82
Location: London, England
Rilux wrote:
The discussion was bourne from problems with MySQL Connector/J having issues with UTF-8 encoded content. Well, we've learned things and I don't see why, just because MySQL is a completely retarded suite of half-arsed DBMS products, we should switch to JBDC.


I should say pure JDBC for SQL Server - rather than a database independent implementation.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 23, 2005 10:10 am 
Senior
Senior

Joined: Thu May 12, 2005 11:40 pm
Posts: 125
Location: Canada
Introduce your PHB to the concept of "prepared statements". Be sure he is seated before you do.

If that doesn't work, Hibernate 3 does support stored procedures and native SQL. It will be pointless and stupid, but sometimes you have to sacrifice to keep the PHBs happy. Just be glad you don't have to give up Hibernate entirely.

If they do make you give up Hibernate entirely, then you've made an error in how you presented it. Your first instinct when presenting Hibernate is to present it as a revolutionary godsend, which it is, but this is bad. PHBs don't like revolutionary godsends, so you should ideally not mention it at all, as if it were just another .jar in your classpath. Would you gush about including commons-beanutils in your project? Probably not, because commons-beanutils is pretty mundane -- you just have to spin it as if hibernate.jar is the same thing. At least you learned your lesson for next time ;_;


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 23, 2005 1:55 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Yes, if I recall correctly (not 100% sure I do, so verify elsewhere), the SQL Server implementation of prepared statements is that it creates an actual stored procedure on the database.

Hibernate != dynamic SQL :-)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 23, 2005 6:17 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
gavin wrote:
Yes, if I recall correctly (not 100% sure I do, so verify elsewhere), the SQL Server implementation of prepared statements is that it creates an actual stored procedure on the database.

Hibernate != dynamic SQL :-)


This was true on earlier versions of SQL Server, but no longer since SQLServer 2000, they now have native support for prepared statements.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 23, 2005 6:18 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
And of course, this is faster than the extra temporary stored procedure creation :-)

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 24, 2005 4:05 am 
Regular
Regular

Joined: Tue Nov 23, 2004 7:42 am
Posts: 82
Location: London, England
Thanks for that guys. I suppose as a Java developer these are things I should have known - but there are only so many hours in the day and work, relaxation and sleep must fit into it all.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 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.