Reputation: 347
How can I use/enable ROO annotations (I beleive it's using AspectJ?) inside a STS project?
For example, I want to use : @RooJavaBean for generating the getter/setter methods automagically.
(Maven is also "installed" in the project)
Upvotes: 0
Views: 559
Reputation: 28757
You need to create a Roo project and these annotations are handled for you automatically. You can do this through the New Roo project wizard:
File -> New... -> Spring Roo Project
Upvotes: 2
Reputation: 5224
You have to use the ROO shell for this and just follow the hints.
For example, to create a java bean with ROO annotations:
roo> entity --class ~.User --testAutomatically
roo> field string --fieldName name --notNull
Upvotes: 0