-->
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: add "exec as user100" before each insert statement
PostPosted: Thu Sep 16, 2010 11:14 am 
Newbie

Joined: Sun Sep 05, 2010 10:34 am
Posts: 1
hi folks
i want to know if can do this:

add "exec as user100" before each insert statement

for example i have this method:

public void insertCategory(Category cat){

Session session = getSession();
session.getTransaction().begin();
session.persist(cat);
session.getTransaction().commit();
}

and i want this normal insert becomes "exec as user100 insert category values(12,12,1)"

its posible this?
pd: i not want use stored procedures


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.