Hello, 
 I have a @Entity (Class Dossier) and this entity owns others one like an @Entity Adress object or other like Vehicle...
My problem is that when I try to save my Dossier with :
System.out.println("Save Dossier");
		Session session = HibernateUtil.getSession();
		Transaction transaction = session.beginTransaction();
		session.saveOrUpdate(dossier);
		transaction.commit();
		session.close();
I have only the primitif type that are saved.... ?
And I have a id in my Dossier class like this :
Code:
@Id
   @GeneratedValue(strategy = GenerationType.AUTO) 
   private Integer id;
But when I look into my data base, the id is 1
But the sql query on my log is the following :
Code:
Save Dossier
11:54:26,614 DEBUG SQL:111 - update Dossier set etatDossier=? where id=?
Hibernate: update Dossier set  etatDossier=? where id=?
11:54:26,614 DEBUG SQL:111 - delete from Dossier_Document where Dossier_id=?
Hibernate: delete from Dossier_Document where Dossier_id=?
11:54:26,614 DEBUG SQL:111 - delete from Dossier_protagonistes where Dossier_id=?
Hibernate: delete from Dossier_protagonistes where Dossier_id=?
Have you an idea of the origin of this problem ?
[/code]