vaadin-lazyquerycontainer问题

大家好! 如何将vaadin-lazyquerycontainer的实例 中的 eclipselink 改为 hibernate 可用的project,多谢了!!!!

这个不是很清楚了,有没有试过把persistence.xml里eclipselink的配置对应得改成hibernate的?


<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
                        http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
	version="2.0"
>
	<persistence-unit name="book-examples">
		<provider>org.hibernate.ejb.HibernatePersistence</provider>
		<class>com.vaadin.book.examples.addons.jpacontainer.Person</class>
		<class>com.vaadin.book.examples.addons.jpacontainer.Country</class>
		<class>com.vaadin.book.examples.addons.jpacontainer.CelestialBody</class>
		<class>com.vaadin.book.examples.addons.MyCalendarEvent</class>
		<properties>
			<property name="hibernate.connection.url" value="jdbc:h2:file:~/.h2/book-examples-h2db;AUTO_SERVER=TRUE;FILE_LOCK=NO" />
			<property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"></property>
			<property name="hibernate.connection.driver_class" value="org.h2.Driver" />
			<property name="hibernate.connection.username" value="sa" />
			<property name="hibernate.connection.password" value="" />
			<property name="hibernate.show_sql" value="true" />
			<property name="hibernate.format_sql" value="true" />
			<property name="hibernate.hbm2ddl.auto" value="update" />
		</properties>
	</persistence-unit>
</persistence>

更改persistence.xml文件