This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Sping, Hibernate and Security" Watch "Sping, Hibernate and Security" New topic

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

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
I agree. Here's the link:
subject: Sping, Hibernate and Security
It's not a secret anymore!