farzad wrote:
Can you send me the persistence.xml file? I am not sure but may be we can see something in it that shows the problem.
Farzad-
<?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/ ... ce_1_0.xsd"
version="1.0">
<!-- persistence.xml -->
<persistence-unit name="zeuzPersistance">
<!-- The provider only needs to be set if you use several JPA providers -->
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<class>zeuzgroup.core.BodyPart</class>
<class>zeuzgroup.core.exercise.ExerciseCategory</class>
<class>zeuzgroup.core.exercise.Exercise</class>
<class>zeuzgroup.core.Person</class>
<class>zeuzgroup.core.user.ValidationCode</class>
<class>zeuzgroup.core.Weight</class>
<class>zeuzgroup.core.trainingscheme.TrainingSchemeAbstract</class>
<class>zeuzgroup.core.trainingscheme.TrainingScheme</class>
<class>
zeuzgroup.core.trainingscheme.TrainingSchemeTemplate
</class>
<properties>
<!-- Scan for annotated classes -->
<property name="hibernate.archive.autodetection"
value="class" />
<!-- SQL stdout logging -->
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.format_sql" value="false" />
<property name="use_sql_comments" value="false" />
<!-- Connecting to mySQL -->
<property name="hibernate.dialect"
value="org.hibernate.dialect.MySQLDialect" />
<property name="hibernate.connection.driver_class"
value="com.mysql.jdbc.Driver" />
<property name="hibernate.connection.url"
value="jdbc:mysql://localhost:3306/ZeuzTest" />
<property name="hibernate.connection.username" value="root" />
<property name="hibernate.hbm2ddl.auto" value="create-drop" />
<property name="hibernate.c3p0.acquire_increment" value="1" />
<property name="hibernate.c3p0.idle_test_period"
value="14400" />
<property name="hibernate.c3p0.timeout" value="25200" />
<property name="hibernate.c3p0.max_size" value="8" />
<property name="hibernate.c3p0.min_size" value="3" />
<property name="hibernate.c3p0.max_statements" value="0" />
</properties>
</persistence-unit>
</persistence>
where as
<class>zeuzgroup.core.trainingscheme.TrainingSchemeAbstract</class>
<class>zeuzgroup.core.trainingscheme.TrainingScheme</class>
TrainingScemeAbstract are mammal and trainingScheme are cat...