Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sping, Hibernate and Security

 
Gerardo Tasistro
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic