java - How to use Spring Data Repositories as Vaadin JPAContainer -


is possible use org.springframework.data.jpa.repository.jparepository repositories jpacontainer vaadin?

we setting new vaadin 7 project scratch spring 3.2.

the spring integration done spring vaadin integration addon.

as far can entityprovider jparepository or somewhere else can use jpacontainer this:

entitymanager entitymanager = getentitymanager(campaign.class)); mutablelocalentityprovider<campaign.class)> provider; provider = new cachingmutablelocalentityprovider<campaign.class)>(campaign.class), entitymanager); provider.settransactionshandledbyprovider(false); jpacontainer<campaign> container = new jpacontainer<campaign>(campaign.class);       container.setentityprovider(entityproviderutil.get().getentityprovider(campaign.class)); 

or jsut simple

entitymanager entitymanager = getentitymanager(campaign.class)); jpacontainer<campaign> container = jpacontainerfactory.make(campaign.class, entitymanager) 

well, should read following post , decide if did not want use jparepository model layer , wrap beanitemcontainer, cuz jpacontainer looks has performance issues point of view.

jpacontainer issues , different approach

mvp pattern , pojo binding hibernate


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -