First change where I changed Domain Model. I created a new hasMany relationship in Thesis with newly created Domain class Link. After that I updated ThesisController and ThesisService to process links. Finally I did some changes to views to reflect the changes.
Changes in files
BootStrap.groovy
Added some of links to development enviroment
Link.groovy
New Domain class, with just one field: url
Thesis.groovy
Added hasMany relationship with Link
ThesisController.groovy
Updated update() method to process links.
I had to bypass bindData(), because I wasn't able run it with it
ThesisService.groovy
Added methods for processing String and String[] into Set of Links, because form return either String or String[] depending on number of links
The documentation still says "Set with one Link" and "Set with Links", instead of List.
You need to create a database migration for this change, otherwise I won't be able to deploy this to production. The database migration will need to create a new table Link with the necessary relationships.
Overview
First change where I changed Domain Model. I created a new hasMany relationship in Thesis with newly created Domain class Link. After that I updated ThesisController and ThesisService to process links. Finally I did some changes to views to reflect the changes.
Changes in files
BootStrap.groovy
Link.groovy
Thesis.groovy
ThesisController.groovy
ThesisService.groovy
thesis/_form.bsp
thesis/show.bsp