-->
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: Getting started
PostPosted: Fri Aug 04, 2006 6:19 am 
Newbie

Joined: Fri Aug 04, 2006 6:09 am
Posts: 18
Name and version of the database you are using:Oracle 9i

Hi,

I am about to embark on my first project using Hibernate and I was hoping someone could give me some quick pointers.

1. Which version should i go with? Seems a 3.2 release is imminent. I do not use EJB or JEE5 if thats useful. I will be using jse5.
2. Is using Hibernate open to SQL Injection attacks?
3. Does Hibernate support the use of bind variables(Oracle feature)?

Cheers

R

PS.I started reading Hibernate in Action and was very impressed how the authors obviously knew databases and were fully aware of the OR mapping problems. Good work.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 04, 2006 9:43 am 
Expert
Expert

Joined: Tue Dec 07, 2004 6:57 am
Posts: 285
Location: Nürnberg, Germany
1) I would go for 3.2
2) Hibernate uses prepared statements ... so it is not open to sql injection
3) yes

_________________
Please don't forget to rate


Top
 Profile  
 
 Post subject: More questions
PostPosted: Fri Aug 04, 2006 10:35 am 
Newbie

Joined: Fri Aug 04, 2006 6:09 am
Posts: 18
thanks for that.

Seems like my DBA group are going to say that the java layer is not allowed to issue direct sql and all interaction must be via stored procs.

I looked through the reference manual and it seems you can still have domain objects and in the mapping state the procs to use for update/delete/insert.

Also, alot of the initial stored procs for insert,update and delete can probably be generated - anyone have any resources on this?

Cheers

Rakesh


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.