tink01
tink01

Reputation: 347

ROO Annotations with SpringSource Tool Suite

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

Answers (2)

Andrew Eisenberg
Andrew Eisenberg

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

moritz
moritz

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

Related Questions