Thanks Chan. Those links are what I'm looking for.
Type: Posts; User: Tao; Keyword(s):
Thanks Chan. Those links are what I'm looking for.
I'm trying to apply spring security to our new project, however our project has some special requirements for login. Wish any one can provide some suggestions about how to implement it. Thanks.
...
I have solved my problem by using @Cascade({org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
cheers:D
Does any one know how to delete children while updating parent? The scenario is I have two classes Parent and Child. Every time the Parent class merge, some children should be deleted from database...
When I face deattached object before persistence, I usually reattach it by calling getJpaTemplate().find(Class<T> entityClass, Object id). I don't use merge() because the performance is really bad....
Luke, have you tried to customized the role prefix through AccessDecisionManager yourself? I tried it, unfortunately it did not work. The following is my configuration file, any idea what is wrong?
...
Based on my research, in spring security configuration there are two places you can specify a role prefix. they are <ldap-user-service> and <jdbc-user-service>. If you don't use ldap or jdbc...
Marco, thanks for your reply. We don't use JdbcDaoImpl in our porject and our UserDetailService object can retrieve all privileges from database quite well. My problem lays on the...
In my project, all our authorities are stored in database and we use group instead of role to control the access. After rewriting the UserDetails to prepare all our authorities from database, I got...