-->
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.  [ 1 post ] 
Author Message
 Post subject: Integrating existing Database with special security layer
PostPosted: Fri Sep 21, 2007 4:23 am 
Newbie

Joined: Thu Sep 20, 2007 8:23 am
Posts: 1
I’m considering using hibernate to access an existing postgresql-database. To access the database via username and password is of course a standard-procedure.

But due to an additional security layer within the database it is necessary to start every transaction with a select-statement and specific parameters (username and password or a session-token of the web application) Otherwise all following queries or DML statements won't be executed.

For example:

Quote:
BEGIN
//required select statement as a kind of login
select * from session_login_web ( username, password, additional information)

//all other queries or DML statements
insert into…
COMMIT / END


The select statement (with username / password or session-token) at the beginning of every transaction is necessary to authorize the “user” within the database. After a successful authorization, all data is queried and manipulated via views!

Are there any possibilities to use hibernate for these special purposes, to force hibernate executing the select-statement for each transaction and to query and manipulate views instead of tables?


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

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.