I have created an entity called:
AuthenticationMaster
It was reversed from a table in the DB. It created all of the appropriate files:
AuthenticationMaster.java
I have the entity AJ class:Code:@RooJavaBean @RooToString @RooDbManaged(automaticallyDelete = true) @RooEntity(table = "AUTHENTICATION_MASTER", finders = { "findAuthenticationMastersByLogin" }) public class AuthenticationMaster { }
Authentication_Roo_Entity.aj
I am now creating a spring service.Code:privileged aspect AuthenticationMaster_Roo_Entity { declare @type: AuthenticationMaster: @Entity; declare @type: AuthenticationMaster: @Table(name = "AUTHENTICATION_MASTER"); @PersistenceContext transient EntityManager AuthenticationMaster.entityManager; @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "AUTHENTICATIONID") private Long AuthenticationMaster.authenticationid; @Version @Column(name = "version") private Integer AuthenticationMaster.version; public Long AuthenticationMaster.getAuthenticationid() { return this.authenticationid; } public void AuthenticationMaster.setAuthenticationid(Long id) { this.authenticationid = id; } .....
UserService.java
In the IDE - the line that uses the finder indicates that the finder is not defined. Also, if I try and create an AuthenticationMaster object, the object does not have any getters or setters. It is just a plain object and doesn't seem to recognize the AspectJ stuff.Code:@Component("userService") public class UserService implements UserDetailsService { @Override public UserDetails loadUserByUsername(String login) throws UsernameNotFoundException, DataAccessException { do { // we need to get the authenticationMaster from the // DB and then create the usermaster object AuthenticationMaster.findAuthenticationMastersByLogin(login); } while (false); return null; } }
ALSO - I JUST NOTICED THAT WHEN I GENERATE MY ENTITIES, I DON'T GET ANY ASPECTJ MARKERS.
What could be wrong?
Thanks,
Tom


Reply With Quote
