Commits
Nicolas Leroux authored 6ba442e8710
Allows enumeration to be specified from Fixture or from params
Fixed the CRUD to display only the relationship we can modify
Allows the CRUD to display and modify relationship like:
@Entity
public class Account extends Model {
@CollectionOfElements
public Set<ContentType> contentTypes;
@CollectionOfElements
public Set<String> usernames;
@OneToMany(mappedBy="account")
public Set<Comment> comments;
public String emailAddress;
public String organisation;
public Account(Set<String> usernames, String emailAddress, String organisation) {
super();
this.usernames = usernames;
this.emailAddress = emailAddress;
this.organisation = organisation;
}
}