How can I verify the crosscutting model? I changed the this.id part of the isNew() method in my User entity and everything compiles. Yet, I can't get content assist to any of the fields that are in the itd-files. I can get to them via the aspect markers and if I add them like: this.id STS accepts that as a member and doesn't complain. It's maven that again will raise the compiler error about fields in the itd-files.
I tried both Maven 2.2.9 and the built-in Maven 3.0, in STS and from the command line. I have had no problems before building with references to fields in the itd-files, so something must be wrong with how I have set up the project, which is pretty much taken from the Hades Project Manual, though I want to use the id field that Roo manages in the User_Roo_Entity.aj file.
The User object:
Code:
@RooJavaBean
@RooToString
@RooEntity
public class User {
private String username;
private String password;
private String email;
@ManyToMany(cascade = CascadeType.ALL)
private Set<Role> roles;
public boolean isNew() {
return null == this.id; //changed to null == null to get compilation working
}
}