For every collection property a second property is added. In the example below an entsList property is created for the ents property. If you define your own entsList property then WebDSL does not give you an error.

entity MyEnt {
  ents -> Set<MyEnt>
  entsList -> List<MyEnt>
}

define page root() {
}

However if you compile the java code that was generated by WebDSL you will get the following errors:

getEntsList() is already defined in webdsl.generated.domain.MyEnt
setEntsList(java.util.List<webdsl.generated.domain.MyEnt>) is already defined in webdsl.generated.domain.MyEnt
Submitted by Christoffer Gersen on 6 July 2011 at 17:48

Log in to post comments