Eclipse Plugin Central

Persistence O/R Mapping Plug-Ins For Eclipse - Problem with Hibernate Synchronizer??

alinoor - Dec 14, 2006 - 02:59 AM
Post subject: Problem with Hibernate Synchronizer??
Hay..
i am using Mysql 5.0.27 with Myeclipse 5.0 and Hibernate Synchronizer 3.1.9. when i synchronize the HBM file this is what i get in Base and Java class.
My HBM File is

<class
name="Groups"
table="groups"
>
<meta attribute="sync-DAO">false</meta>

<meta attribute="sync-DAO">false</meta>

<id
name="Id"
type="integer"
column="group_id"
>
<generator class="increment"/>
</id>

<property
name="GroupName"
column="group_name"
type="string"
not-null="false"
length="255"
/>
<property
name="GroupDiscription"
column="group_discription"
type="string"
not-null="false"
/>
<property
name="Category"
column="category"
type="string"
not-null="false"
length="255"
/>
<property
name="City"
column="city"
type="string"
not-null="false"
length="100"
/>
<property
name="State"
column="state"
type="string"
not-null="false"
length="100"
/>
<property
name="Zip"
column="zip"
type="string"
not-null="false"
length="100"
/>
<property
name="Country"
column="country"
type="string"
not-null="false"
length="100"
/>
<property
name="ImageUrl"
column="image_url"
type="string"
not-null="false"
length="255"
/>
<property
name="CreationDate"
column="creation_date"
type="date"
not-null="false"
length="10"
/>
<many-to-one
name="User"
column="user_id"
class="UserAuthentication"
not-null="false"
>
</many-to-one>
<many-to-one
name="AccessType"
column="access_type_id"
class="RefAccessType"
not-null="false"
>
</many-to-one>


</class>
And the BAse Class Generated for this HBM by synchronizer is

public abstract class BaseGroups implements Serializable {

public static String REF = "Groups";
// constructors
public BaseGroups () {
initialize();
}
protected void initialize () {}
public String toString () {
return super.toString();
}
}

And the Java Class is
public class Groups extends BaseGroups {
private static final long serialVersionUID = 1L;

/*[CONSTRUCTOR MARKER BEGIN]*/
public Groups () {
super();
}

/*[CONSTRUCTOR MARKER END]*/


}

I don't know why it is missing the Properties of HBM file in the base and java classes
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits