"field set" with or without --cardinality generates the same code
I am trying this 2 commands on Roo console (playing around with 1.1.0M1)
Code:
field set --fieldName iterations --element ~domain.Iteration
Code:
field set --fieldName iterations --element ~domain.Iteration --cardinality
I understood that the first will generate a @ManyToMany set and the second one should create a @OneToMany (as per the last part of http://static.springsource.org/sprin...x.html#d4e1365). But for both I'm getting this:
Code:
@ManyToMany(cascade = CascadeType.ALL)
private Set<com.pm.domain.Iteration> iterations = new java.util.HashSet<com.pm.domain.Iteration>();
Is this something that changed on 1.1.0M1? How can I force a OneToMany to be generated?
Thanks