I just started with DDD and created an AggregateRoot with its Repository. The repository uses eclipselink, works like a charm. Now i would like to provide a UI to this domain, so i think vaadin is a nice way to do that. But i am now wondering how i can connect the domain model with the UI? I just dont get it.
https://github.com/olze/MyCMS/tree/tmp/MyCMS-ui/src/main/java/ch/trustserv/mycms/ddd - thats my current project, but the code i use now in the MyUI.java class is code which should go to an application service. But how can i implement this? I found the ddd sample application but that uses spring - and i would like to use as much plain java as possible.
Or do i have to create a REST interface and a server in the application impl, create a REST client in the UI and use that? I feel somehow lost. Something is missing ...?? Any help is really appreciated.