Plugins (1059)


Training and Consulting (44)



EPIC Poll

What is your favourite developer portal?

[ Results | Polls ]

Votes: 541
Comments: 0

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
alinoor
Post subject: Problem with Hibernate Synchronizer??  PostPosted: Dec 14, 2006 - 02:59 AM



Joined: Dec 14, 2006
Posts: 1

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
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits