-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Génération de classes depuis une DB
PostPosted: Mon Dec 15, 2008 9:27 am 
Newbie

Joined: Mon Dec 15, 2008 9:25 am
Posts: 6
Hello,

J'essaie de générer mes classes depuis ma base de donnée en utilisant Hibernate Tools.

Mon but est de générer des classes comprenant des annotations, donc sans utiliser de fichier hbm.

J'utilise donc le plugin eclipse, qui me génère toutes mes classes, comprenant des annotations, genre:

Code:
@Id
@Column(name = "name", unique = true, nullable = false, length = 128)
...

Mais aucune du genre

Code:
@ManyToOne
@OneToMany
...

En gros, comme s'il n'y avait aucune relation dans ma base de donnée... Pourquoi? Comment faire?

Merci


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.