-
Aug 4th, 2010, 10:17 AM
#1
Transient field
Hi all,
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
will create
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?
Thanks,
milan
-
Aug 9th, 2010, 01:29 PM
#2
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.
http://static.springsource.org/sprin...oJavaBean.html
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules