File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Sping, Hibernate and Security Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Sping, Hibernate and Security" Watch "Sping, Hibernate and Security" New topic
Author

Sping, Hibernate and Security

Gerardo Tasistro
Ranch Hand

Joined: Feb 08, 2005
Posts: 362
Is there a way to use an XML configuration to limit valid SQL parameters?

In the same way I can limit what roles can invoke certain methods, can I limit the values of an expression in say a DetachedCriteria. So for example ROLE_USER can only have values 1 through 5 for the field "region" in the table "stores" ?
Ahmad Reza Seddighi
Author
Greenhorn

Joined: Dec 15, 2009
Posts: 24
The book does not involve in such special cases. However, it discusses how you can use the Criteria API which handles these cases properly.

Spring Persistence with Hibernate


Ahmad Reza Seddighi
website: http://www.ahmadseddighi.com
email: ahmadseddighi@yahoo.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sping, Hibernate and Security