原作者:http://www.verydemo.com/demo_c146_i15353.html
初用hibernate
遇到的CGLIB Enhancement failed
问题
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="Device" table="device" schema="dbo" catalog="nmsDB">
<id name="id" type="long">
<column name="device_id" precision="18" scale="0" />
<generator class="native" />
</id>
<property name="mac" type="string">
<column name="mac" length="255" unique="true"/>
</property>
<property name="ip" type="string">
<column name="ip" length="50" unique="true"/>
</property>
&nbs…………………………………………………………………………
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="Device" table="device" schema="dbo" catalog="nmsDB">
<id name="id" type="long">
<column name="device_id" precision="18" scale="0" />
<generator class="native" />
</id>
<property name="mac" type="string">
<column name="mac" length="255" unique="true"/>
</property>
<property name="ip" type="string">
<column name="ip" length="50" unique="true"/>
</property>
&nbs…………………………………………………………………………