]> source.dussan.org Git - vaadin-framework.git/commit
Enable changing the backing bean for BeanItem (#4302) (#77)
authorArtur <artur@vaadin.com>
Tue, 13 Dec 2016 11:56:54 +0000 (13:56 +0200)
committerPekka Hyvönen <pekka@vaadin.com>
Tue, 13 Dec 2016 11:56:54 +0000 (13:56 +0200)
commit716ec03be1f2c73b564d6c16edd4139ee73ffa30
tree5def5bc05c38a536b260bf09739900bbd591dc58
parent94df5a7ed3bd02f08d4171a832ce3a29ccf1039b
Enable changing the backing bean for BeanItem (#4302) (#77)

When storing a bean to the database, you typically get a new and updated
bean instance back. By allowing to change the bean instance, we make it
possible to just update the single BeanItem instance which can be used
in many places.
server/src/main/java/com/vaadin/data/util/BeanItem.java
server/src/main/java/com/vaadin/data/util/MethodProperty.java
server/src/main/java/com/vaadin/data/util/NestedMethodProperty.java
server/src/test/java/com/vaadin/data/util/BeanItemTest.java
server/src/test/java/com/vaadin/data/util/MethodPropertyTest.java [new file with mode: 0644]
server/src/test/java/com/vaadin/data/util/NestedMethodPropertyTest.java