Hi guys,
In my application I've got a Person that I want to use for authentication. As mentioned here http://forum.springsource.org/showthread.php?t=90941 I extended my Person class to inherit from org.springframework.security.core.userdetails.User . That gave me a compile error since I had to implement the constructor:
No problem there, except that when I compile I getCode:public Person(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<GrantedAuthority> authorities) { super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities); }
So it tries to make a constructor that is empty, which is not valid for User. What would be the correct way to handle this?Code:error at super(); /Users/niklas/Documents/Eclipse/myProject/src/main/java/dk/mycompany/myProject/data/entities/Person_Roo_Entity.aj:32:0::0 The constructor User() is undefined
Cheers
Nik


Reply With Quote
