Aug 4th, 2010, 10:17 AM
I think I am failing to understand why the command:
entity --class ~.Document --testAutomatically
field string --fieldName name --notNull
field string --fieldName content --notNull
field string --fieldName status --transient
private transient String status;
in my Document.java class:
but not getters and setters in aj files.
Is this expected behaviour?
Is there any other way to make my transient field accessible from other class except manually adding getters and setters in Document.java?
Aug 9th, 2010, 01:29 PM
An Entity created with Roo will automatically add the @RooJavaBean annotation which is responsible for telling Roo whether or not to generate getter/setter methods for each non-transient field only.
You can look at the JavaDoc for more, it says the same thing.