I created a contact add some properties to it in ProprieteContact. Could someone explain me why ProprieteContact data is never written ?
Hibernate version: 3.1.1 with Annotations 3.1 beta 8
Mapping documents:
Contact.java
package org.rondeau.michel.contacts;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.OrderBy;
import javax.persistence.Table;
import javax.persistence.Version;
import org.hibernate.annotations.Index;
import org.hibernate.validator.Length;
import org.hibernate.validator.Min;
import org.hibernate.validator.NotNull;
@Entity
@Table(name="contact" )
public class Contact {
private static long lastIdContact = 1;
private long idContact;
private long version;
private String prefixe;
// un texte non nul d'au plus 30 caractères
private String nom;
private String prenom;
private String titre;
private List<Coordonnee> coordonnees = new ArrayList<Coordonnee>();
// private Societe societe;
private Date anniversaire;
private List<DonneePersonnelle> donneesPersonnelles = new ArrayList<DonneePersonnelle>();
// private Hashtable<String, Adresse> adresses = new Hashtable<String, Adresse>();
/**
*
*/
private Contact() {
super();
}
/**
* @param prefixe
* @param nom
* @param prenom
* @param titre
* @param$societe
* @param anniversaire
*/
// public Contact(String prefixe, String nom, String prenom, String titre, Societe societe, Date anniversaire) {
public Contact(String prefixe, String nom, String prenom, String titre, Date anniversaire) {
this();
if(nom == null)
throw new NullPointerException("nom");
this.prefixe = prefixe;
this.nom = nom;
this.prenom = prenom;
this.titre = titre;
// this.societe = societe;
this.anniversaire = anniversaire;
this.idContact = lastIdContact++;
}
/**
* @param coordonnees The coordonnees to set.
*/
@SuppressWarnings("unused")
private void setCoordonnees(List<Coordonnee> coordonnees) {
this.coordonnees = coordonnees;
}
/**
* @param donneesPersonnelles The donneesPersonnelles to set.
*/
@SuppressWarnings("unused")
private void setDonneesPersonnelles(List<DonneePersonnelle> donneesPersonnelles) {
this.donneesPersonnelles = donneesPersonnelles;
}
// /**
// * @return Returns the adresses.
// */
// public Hashtable<String, Adresse> getAdresses() {
// return adresses;
// }
// /**
// * @param adresses The adresses to set.
// */
// void setAdresses(Hashtable<String, Adresse> adresses) {
// this.adresses = adresses;
// }
/**
* @return Returns the anniversaire.
*/
public Date getAnniversaire() {
return anniversaire;
}
/**
* @param anniversaire The anniversaire to set.
*/
public void setAnniversaire(Date anniversaire) {
this.anniversaire = anniversaire;
}
/**
* @return Returns the coordonnees.
*/
@OneToMany(mappedBy="contact")
// @OrderBy("type, description")
public List<Coordonnee> getCoordonnees() {
return coordonnees;
}
/**
* @return Returns the nom.
*/
@Length(max=30)
@NotNull
@Index(name="nom", columnNames={"nom", "prenom"})
public String getNom() {
return nom;
}
/**
* @param nom The nom to set.
*/
public void setNom(String nom) {
this.nom = nom;
}
/**
* @return Returns the prefixe.
*/
@Length(max=5)
public String getPrefixe() {
return prefixe;
}
/**
* @param prefixe The prefixe to set.
*/
public void setPrefixe(String prefixe) {
this.prefixe = prefixe;
}
/**
* @return Returns the prenom.
*/
@Length(max=30)
public String getPrenom() {
return prenom;
}
/**
* @param prenom The prenom to set.
*/
public void setPrenom(String prenom) {
this.prenom = prenom;
}
// /**
// * @return Returns the societe.
// */
// public Societe getSociete() {
// return societe;
// }
// /**
// * @param societe The societe to set.
// */
// public void setSociete(Societe societe) {
// this.societe = societe;
// }
/**
* @return Returns the titre.
*/
@Length(max=30)
public String getTitre() {
return titre;
}
/**
* @param titre The titre to set.
*/
public void setTitre(String titre) {
this.titre = titre;
}
/**
* @return Returns the idContact.
*/
@Id
@Min(1)
public long getIdContact() {
return idContact;
}
/**
* @param idContact The idContact to set.
*/
@SuppressWarnings("unused")
private void setIdContact(long idContact) {
this.idContact = idContact;
if(lastIdContact < idContact)
lastIdContact = idContact +1;
}
/**
* @return Returns the donneesPersonnelles.
*/
@OneToMany(mappedBy="contact")
@OrderBy("type, valeur")
public List<DonneePersonnelle> getDonneesPersonnelles() {
return donneesPersonnelles;
}
/**
*
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("Contact[nom: ");
sb.append(nom);
sb.append(", prenom: ");
sb.append(prenom);
sb.append(", titre: ");
sb.append(titre);
sb.append(", coordonnees: ");
sb.append(coordonnees);
sb.append(", anniversaire: ");
sb.append(anniversaire);
sb.append(", donneesPersonnelles: ");
sb.append(donneesPersonnelles);
sb.append(']');
return sb.toString();
}
@Version
@Column(name="OPTLOCK")
public long getVersion() {
return version;
}
@SuppressWarnings("unused")
private void setVersion(long version) {
this.version = version;
}
}
DonneePersonnelle.java
package org.rondeau.michel.contacts;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.validator.NotNull;
import org.hibernate.validator.Size;
@Entity
@Table(name="donnee_contact")
public class DonneePersonnelle extends ProprieteContact implements Comparable {
// private long version;
private String type;
private String valeur;
/**
*
*/
DonneePersonnelle() {
// pour les besoins d'hibernate
}
/**
*
*/
private DonneePersonnelle(Contact contact) {
super(contact);
}
/**
* @param contact
* @param type
* @param valeur
*/
public DonneePersonnelle(Contact contact, String type, String valeur) {
this(contact);
if(type == null)
throw new NullPointerException();
this.type = type;
this.valeur = valeur;
}
/**
* @return Returns the type.
*/
@NotNull
@Id
@Size(min=1)
public String getType() {
return type;
}
/**
* @param type The type to set.
*/
@SuppressWarnings("unused")
private void setType(String type) {
if(type == null)
throw new NullPointerException("type");
this.type = type;
}
/**
* @return Returns the valeur.
*/
@NotNull
@Size(min=1)
public String getValeur() {
return valeur;
}
/**
* @param valeur The valeur to set.
*/
public void setValeur(String valeur) {
if(valeur == null)
throw new NullPointerException("valeur");
this.valeur = valeur;
}
public int compareTo(Object o) {
int compare;
if (o instanceof DonneePersonnelle) {
DonneePersonnelle donnee = (DonneePersonnelle) o;
assert type != null && donnee.type != null;
assert valeur != null && donnee.valeur != null;
compare = (type.compareTo(donnee.type));
if(compare==0)
compare = valeur.compareTo(donnee.valeur);
return compare;
}
throw new ClassCastException();
}
/**
*
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("DonneePersonelle[type: ");
sb.append(type);
sb.append(", valeur: ");
sb.append(valeur);
sb.append(']');
return sb.toString();
}
/* (non-Javadoc)
* @see java.lang.Object#equals(java.lang.Object)
*/
@Override
public boolean equals(Object o){
if (this == o) return true;
if (!(o instanceof DonneePersonnelle)) return false;
DonneePersonnelle donnee = (DonneePersonnelle) o;
if(!getContact().equals(donnee.getContact())) return false;
if(!type.equals(donnee.type)) return false;
return (valeur == null ? donnee.valeur == null : valeur.equals(donnee.valeur));
}
/* (non-Javadoc)
* @see java.lang.Object#hashCode()
*/
@Override
public int hashCode() {
int result = getContact().hashCode();
result = 31 * result + getType().hashCode();
if(getValeur() != null)
result = 41 * result + getValeur().hashCode();
return result;
}
// @Version
// @Column(name="OPTLOCK")
// public long getVersion() {
// return version;
// }
//
// @SuppressWarnings("unused")
// private void setVersion(long version) {
// this.version = version;
// }
}
ProprieteContact.java
package org.rondeau.michel.contacts;
import javax.persistence.CascadeType;
import javax.persistence.EmbeddableSuperclass;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import org.hibernate.validator.NotNull;
@EmbeddableSuperclass
public abstract class ProprieteContact {
private Contact contact;
/**
*
*/
ProprieteContact() {
// pour les besoins d'hibernate
}
/**
* @param contact
*/
public ProprieteContact(Contact contact) {
if(contact == null)
throw new NullPointerException("contact");
this.contact = contact;
}
/**
* @return Returns the contact.
*/
@ManyToOne(cascade={CascadeType.ALL})
@JoinColumn(name="contact_fk")
@NotNull
public Contact getContact() {
return contact;
}
/**
* @param contact The contact to set.
*/
@SuppressWarnings("unused")
private void setContact(Contact contact) {
this.contact = contact;
}
}
Code between sessionFactory.openSession() and session.close():
public static void main(String[] args) {
TestContact tc = new TestContact();
tc.createAndStoreContact();
HibernateUtil.getSession().close();
}
@SuppressWarnings("unchecked")
private void createAndStoreContact() {
Logger logger = Logger.getLogger(getClass());
ConsoleAppender appender = new ConsoleAppender();
appender.setLayout(new SimpleLayout());
appender.setTarget("System.err");
appender.activateOptions();
Logger.getRootLogger().setLevel(Level.DEBUG);
Logger.getRootLogger().addAppender(appender);
for(Enumeration<Logger> logs = (Enumeration<Logger>)LogManager.getCurrentLoggers(); logs.hasMoreElements();) {
Logger log = logs.nextElement();
log.setLevel(Level.DEBUG);
log.addAppender(appender);
}
Session session = HibernateUtil.getSession();
session.beginTransaction();
try {
Contact contact;
contact = new Contact("M.", "Roux", "Marcel", "plongeur", null);
contact.setAnniversaire((new GregorianCalendar(1972, 6,21)).getTime());
// contact.getCoordonnees().add(new Coordonnee(contact, TypeCoordonnees.telephone, "bureau", "01.65.66.67.08"));
//contact.getDonneesPersonnelles().add(new DonneePersonnelle(contact, "Conjoint", "Julie"));
//contact.getDonneesPersonnelles().add(new DonneePersonnelle(contact, "Enfants", "Pierre, Jean, Jacques"));
logger.debug(contact);
session.save(contact);
contact = new Contact("Miss", "Smith", "Angela", "waitress", null);
contact.setAnniversaire((new GregorianCalendar(1970, 9, 6)).getTime());
logger.debug(contact);
session.save(contact);
session.getTransaction().commit();
} catch(RuntimeException e) {
session.getTransaction().rollback();
throw e;
}
}
Full stack trace of any exception that occurs:
Name and version of the database you are using:
hsqldb 1.8.0
The generated SQL (show_sql=true):
shown in log below
Debug level Hibernate log excerpt:
*** configurationOptionStr=null
** End of LogManager static initializer
log4j:INFO Creating new logger [org.rondeau.michel.contacts.test.TestContact] in repository [default].
log4j:INFO Creating new logger [org.hibernate.cfg.Configuration] in repository [default].
log4j:INFO Creating new logger [org.hibernate.cfg.AnnotationConfiguration] in repository [default].
log4j:INFO Creating new logger [org.hibernate.cfg.SettingsFactory] in repository [default].
log4j:INFO Creating new logger [org.hibernate.util.XMLHelper] in repository [default].
log4j:INFO Creating new logger [org.hibernate.util.DTDEntityResolver] in repository [default].
log4j:INFO Creating new logger [org.hibernate.cfg.Environment] in repository [default].
INFO - Hibernate 3.1
log4j:INFO Creating new logger [org.hibernate.util.ConfigHelper] in repository [default].
INFO - hibernate.properties not found
INFO - using CGLIB reflection optimizer
INFO - using JDK 1.4 java.sql.Timestamp handling
log4j:INFO Creating new logger [org.hibernate.event.def.AbstractReassociateEventListener] in repository [default].
log4j:INFO Creating new logger [org.hibernate.event.def.AbstractLockUpgradeEventListener] in repository [default].
log4j:INFO Creating new logger [org.hibernate.event.def.DefaultLoadEventListener] in repository [default].
log4j:INFO Creating new logger [org.hibernate.event.def.AbstractSaveEventListener] in repository [default].
log4j:INFO Creating new logger [org.hibernate.event.def.DefaultSaveOrUpdateEventListener] in repository [default].
log4j:INFO Creating new logger [org.hibernate.event.def.DefaultMergeEventListener] in repository [default].
log4j:INFO Creating new logger [org.hibernate.event.def.DefaultPersistEventListener] in repository [default].
log4j:INFO Creating new logger [org.hibernate.event.def.DefaultReplicateEventListener] in repository [default].
log4j:INFO Creating new logger [org.hibernate.event.def.DefaultDeleteEventListener] in repository [default].
log4j:INFO Creating new logger [org.hibernate.event.def.AbstractFlushingEventListener] in repository [default].
log4j:INFO Creating new logger [org.hibernate.event.def.DefaultAutoFlushEventListener] in repository [default].
log4j:INFO Creating new logger [org.hibernate.event.def.DefaultDirtyCheckEventListener] in repository [default].
log4j:INFO Creating new logger [org.hibernate.event.def.DefaultEvictEventListener] in repository [default].
log4j:INFO Creating new logger [org.hibernate.event.def.DefaultRefreshEventListener] in repository [default].
log4j:INFO Creating new logger [org.hibernate.event.def.DefaultFlushEntityEventListener] in repository [default].
log4j:INFO Creating new logger [org.hibernate.event.def.DefaultInitializeCollectionEventListener] in repository [default].
INFO - Mapping package org.rondeau.michel.contacts
log4j:INFO Creating new logger [org.hibernate.cfg.Mappings] in repository [default].
log4j:INFO Creating new logger [org.hibernate.cfg.ExtendedMappings] in repository [default].
log4j:INFO Creating new logger [org.hibernate.cfg.AnnotationBinder] in repository [default].
log4j:INFO Creating new logger [org.hibernate.util.ReflectHelper] in repository [default].
log4j:INFO Creating new logger [org.hibernate.property.BasicPropertyAccessor] in repository [default].
WARN - Package not found or wo package-info.java: org.rondeau.michel.contacts
INFO - configuring from resource: /hibernate.cfg.xml
INFO - Configuration resource: /hibernate.cfg.xml
DEBUG - trying to locate
http://hibernate.sourceforge.net/hibern ... on-3.0.dtd in classpath under org/hibernate/
DEBUG - found
http://hibernate.sourceforge.net/hibern ... on-3.0.dtd in classpath
DEBUG - connection.driver_class=org.hsqldb.jdbcDriver
DEBUG - connection.url=jdbc:hsqldb:hsql://localhost
DEBUG - connection.username=sa
DEBUG - connection.password=
DEBUG - connection.pool_size=1
DEBUG - dialect=org.hibernate.dialect.HSQLDialect
DEBUG - current_session_context_class=thread
DEBUG - cache.provider_class=org.hibernate.cache.NoCacheProvider
DEBUG - show_sql=true
DEBUG - hbm2ddl.auto=create
INFO - Configured SessionFactory: null
DEBUG - properties: {java.vendor=Sun Microsystems Inc., show_sql=true, hibernate.connection.url=jdbc:hsqldb:hsql://localhost, sun.management.compiler=HotSpot Client Compiler, os.name=Windows XP, hbm2ddl.auto=create, sun.boot.class.path=C:\Program Files\Java\jdk1.5.0_06\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\i18n.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\jce.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.5.0_06\jre\classes, hibernate.current_session_context_class=thread, sun.desktop=windows, java.vm.specification.vendor=Sun Microsystems Inc., java.runtime.version=1.5.0_06-b05, hibernate.cache.provider_class=org.hibernate.cache.NoCacheProvider, user.name=rondmic, connection.driver_class=org.hsqldb.jdbcDriver, current_session_context_class=thread, user.language=fr, sun.boot.library.path=C:\Program Files\Java\jdk1.5.0_06\jre\bin, dialect=org.hibernate.dialect.HSQLDialect, java.version=1.5.0_06, user.timezone=, sun.arch.data.model=32, java.endorsed.dirs=C:\Program Files\Java\jdk1.5.0_06\jre\lib\endorsed, sun.cpu.isalist=, sun.jnu.encoding=Cp1252, file.encoding.pkg=sun.io, file.separator=\, java.specification.name=Java Platform API Specification, hibernate.cglib.use_reflection_optimizer=true, java.class.version=49.0, user.country=CA, connection.url=jdbc:hsqldb:hsql://localhost, java.home=C:\Program Files\Java\jdk1.5.0_06\jre, java.vm.info=mixed mode, os.version=5.1, path.separator=;, connection.password=, java.vm.version=1.5.0_06-b05, hibernate.connection.password=, user.variant=, java.awt.printerjob=sun.awt.windows.WPrinterJob, sun.io.unicode.encoding=UnicodeLittle, awt.toolkit=sun.awt.windows.WToolkit, hibernate.connection.username=sa, user.home=C:\Documents and Settings\rondmic, java.specification.vendor=Sun Microsystems Inc., hibernate.hbm2ddl.auto=create, java.library.path=C:\Program Files\Java\jdk1.5.0_06\bin;.;C:\WINXP\system32;C:\WINXP;C:\WINXP\system32;C:\WINXP;C:\WINXP\System32\Wbem;C:\Program Files\Fichiers communs\Adaptec Shared\System;C:\Program Files\QuickTime\QTSystem\;C:\PROGRA~1\Druide\Antidote\Antidote, java.vendor.url=http://java.sun.com/, hibernate.connection.driver_class=org.hsqldb.jdbcDriver, connection.username=sa, java.vm.vendor=Sun Microsystems Inc., hibernate.dialect=org.hibernate.dialect.HSQLDialect, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, java.class.path=C:\Documents and Settings\rondmic\workspace\GestionContacts;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\ejb3-persistence.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\hibernate3.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\hibernate-annotations.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\hsqldb.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\log4j-1.3alpha-6.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\lucene-1.4.3.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\ant-antlr-1.6.5.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\asm.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\asm-attrs.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\commons-collections-2.1.1.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\commons-logging-1.0.4.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\dom4j-1.6.1.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\ehcache-1.1.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\jta.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\cglib-2.1.3.jar, java.vm.specification.name=Java Virtual Machine Specification, java.vm.specification.version=1.0, sun.cpu.endian=little, sun.os.patch.level=Service Pack 2, connection.pool_size=1, java.io.tmpdir=C:\DOCUME~1\rondmic\LOCALS~1\Temp\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, os.arch=x86, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.ext.dirs=C:\Program Files\Java\jdk1.5.0_06\jre\lib\ext, user.dir=C:\Documents and Settings\rondmic\workspace\GestionContacts, line.separator=
, java.vm.name=Java HotSpot(TM) Client VM, cache.provider_class=org.hibernate.cache.NoCacheProvider, file.encoding=Cp1252, java.specification.version=1.5, hibernate.show_sql=true, hibernate.connection.pool_size=1}
DEBUG - Preparing to build session factory with filters : {}
DEBUG - Execute first pass mapping processing
DEBUG - Process hbm files
DEBUG - Process annotated classes
INFO - Binding entity from annotated class: java.lang.Class
log4j:INFO Creating new logger [org.hibernate.cfg.annotations.QueryBinder] in repository [default].
log4j:INFO Creating new logger [org.hibernate.cfg.annotations.TableBinder] in repository [default].
log4j:INFO Creating new logger [org.hibernate.cfg.Ejb3Column] in repository [default].
DEBUG - Binding column TYPE unique false
log4j:INFO Creating new logger [org.hibernate.cfg.annotations.EntityBinder] in repository [default].
DEBUG - Import with entity name=Contact
INFO - Bind entity org.rondeau.michel.contacts.Contact on table contact
DEBUG - Processing org.rondeau.michel.contacts.Contact per property access
DEBUG - Processing annotations of org.rondeau.michel.contacts.Contact.idContact
DEBUG - Binding column idContact unique false
DEBUG - idContact is an id
log4j:INFO Creating new logger [org.hibernate.cfg.annotations.SimpleValueBinder] in repository [default].
DEBUG - building SimpleValue for idContact
log4j:INFO Creating new logger [org.hibernate.cfg.annotations.PropertyBinder] in repository [default].
DEBUG - Building property idContact
DEBUG - Cascading idContact with null
DEBUG - Bind @EmbeddedId on idContact
DEBUG - Processing annotations of org.rondeau.michel.contacts.Contact.version
DEBUG - Binding column OPTLOCK unique false
DEBUG - version is a version property
DEBUG - binding property version with lazy=false
DEBUG - building SimpleValue for version
DEBUG - Building property version
DEBUG - Cascading version with null
DEBUG - Version name: version, unsavedValue: undefined
DEBUG - Processing annotations of org.rondeau.michel.contacts.Contact.anniversaire
DEBUG - Binding column anniversaire unique false
DEBUG - binding property anniversaire with lazy=false
DEBUG - building SimpleValue for anniversaire
DEBUG - Building property anniversaire
DEBUG - Cascading anniversaire with null
DEBUG - Processing annotations of org.rondeau.michel.contacts.Contact.coordonnees
DEBUG - Binding column null unique false
DEBUG - Binding column coordonnees unique false
DEBUG - Binding column null unique false
log4j:INFO Creating new logger [org.hibernate.cfg.annotations.CollectionBinder] in repository [default].
DEBUG - Binding column null unique false
DEBUG - Binding column null unique false
DEBUG - Collection role: org.rondeau.michel.contacts.Contact.coordonnees
log4j:INFO Creating new logger [org.hibernate.cfg.CollectionSecondPass] in repository [default].
DEBUG - Building property coordonnees
DEBUG - Cascading coordonnees with none
DEBUG - Processing annotations of org.rondeau.michel.contacts.Contact.nom
DEBUG - Binding column nom unique false
DEBUG - binding property nom with lazy=false
DEBUG - building SimpleValue for nom
DEBUG - Building property nom
DEBUG - Cascading nom with null
DEBUG - Processing annotations of org.rondeau.michel.contacts.Contact.prefixe
DEBUG - Binding column prefixe unique false
DEBUG - binding property prefixe with lazy=false
DEBUG - building SimpleValue for prefixe
DEBUG - Building property prefixe
DEBUG - Cascading prefixe with null
DEBUG - Processing annotations of org.rondeau.michel.contacts.Contact.prenom
DEBUG - Binding column prenom unique false
DEBUG - binding property prenom with lazy=false
DEBUG - building SimpleValue for prenom
DEBUG - Building property prenom
DEBUG - Cascading prenom with null
DEBUG - Processing annotations of org.rondeau.michel.contacts.Contact.titre
DEBUG - Binding column titre unique false
DEBUG - binding property titre with lazy=false
DEBUG - building SimpleValue for titre
DEBUG - Building property titre
DEBUG - Cascading titre with null
DEBUG - Processing annotations of org.rondeau.michel.contacts.Contact.donneesPersonnelles
DEBUG - Binding column null unique false
DEBUG - Binding column donneesPersonnelles unique false
DEBUG - Binding column null unique false
DEBUG - Binding column null unique false
DEBUG - Binding column null unique false
DEBUG - Collection role: org.rondeau.michel.contacts.Contact.donneesPersonnelles
DEBUG - Building property donneesPersonnelles
DEBUG - Cascading donneesPersonnelles with none
log4j:INFO Creating new logger [org.hibernate.validator.ClassValidator] in repository [default].
DEBUG - ResourceBundle ValidatorMessages not found. Delegate to org.hibernate.validator.resources.DefaultValidatorMessages
INFO - Binding entity from annotated class: java.lang.Class
DEBUG - Binding column TYPE unique false
DEBUG - Import with entity name=Coordonnee
INFO - Bind entity org.rondeau.michel.contacts.Coordonnee on table Coordonnee
DEBUG - Processing org.rondeau.michel.contacts.Coordonnee per property access
DEBUG - Processing org.rondeau.michel.contacts.Coordonnee per property access
DEBUG - Processing annotations of org.rondeau.michel.contacts.Coordonnee.description
DEBUG - Binding column description unique false
DEBUG - description is an id
DEBUG - building SimpleValue for description
DEBUG - Building property description
DEBUG - Cascading description with null
DEBUG - Bind @EmbeddedId on description
DEBUG - Processing annotations of org.rondeau.michel.contacts.Coordonnee.type
DEBUG - Binding column type unique false
DEBUG - type is an id
DEBUG - building SimpleValue for type
DEBUG - Building property type
DEBUG - Cascading type with null
DEBUG - Bind @EmbeddedId on type
DEBUG - Processing annotations of org.rondeau.michel.contacts.Coordonnee.contact
DEBUG - Binding column contact_fk unique false
DEBUG - Binding column contact unique false
DEBUG - Building property contact
DEBUG - Cascading contact with all
DEBUG - Processing annotations of org.rondeau.michel.contacts.Coordonnee.numero
DEBUG - Binding column numero unique false
DEBUG - binding property numero with lazy=false
DEBUG - building SimpleValue for numero
DEBUG - Building property numero
DEBUG - Cascading numero with null
DEBUG - ResourceBundle ValidatorMessages not found. Delegate to org.hibernate.validator.resources.DefaultValidatorMessages
INFO - Binding entity from annotated class: java.lang.Class
DEBUG - Binding column TYPE unique false
DEBUG - Import with entity name=DonneePersonnelle
INFO - Bind entity org.rondeau.michel.contacts.DonneePersonnelle on table donnee_contact
DEBUG - Processing org.rondeau.michel.contacts.DonneePersonnelle per property access
DEBUG - Processing org.rondeau.michel.contacts.DonneePersonnelle per property access
DEBUG - Processing annotations of org.rondeau.michel.contacts.DonneePersonnelle.type
DEBUG - Binding column type unique false
DEBUG - type is an id
DEBUG - building SimpleValue for type
DEBUG - Building property type
DEBUG - Cascading type with null
DEBUG - Bind @EmbeddedId on type
DEBUG - Processing annotations of org.rondeau.michel.contacts.DonneePersonnelle.contact
DEBUG - Binding column contact_fk unique false
DEBUG - Binding column contact unique false
DEBUG - Building property contact
DEBUG - Cascading contact with all
DEBUG - Processing annotations of org.rondeau.michel.contacts.DonneePersonnelle.valeur
DEBUG - Binding column valeur unique false
DEBUG - binding property valeur with lazy=false
DEBUG - building SimpleValue for valeur
DEBUG - Building property valeur
DEBUG - Cascading valeur with null
DEBUG - ResourceBundle ValidatorMessages not found. Delegate to org.hibernate.validator.resources.DefaultValidatorMessages
DEBUG - processing manytoone fk mappings
log4j:INFO Creating new logger [org.hibernate.type] in repository [default].
log4j:INFO Creating new logger [org.hibernate.type.DbTimestampType] in repository [default].
INFO - processing extends queue
INFO - processing collection mappings
DEBUG - Second pass for collection: org.rondeau.michel.contacts.Contact.coordonnees
DEBUG - Binding a OneToMany: org.rondeau.michel.contacts.Contact.coordonnees through a foreign key
INFO - Mapping collection: org.rondeau.michel.contacts.Contact.coordonnees -> Coordonnee
DEBUG - Retrieving property org.rondeau.michel.contacts.Coordonnee.contact
DEBUG - Mapped collection key: contact_fk, one-to-many: org.rondeau.michel.contacts.Coordonnee
DEBUG - Second pass for collection: org.rondeau.michel.contacts.Contact.donneesPersonnelles
DEBUG - Binding a OneToMany: org.rondeau.michel.contacts.Contact.donneesPersonnelles through a foreign key
INFO - Mapping collection: org.rondeau.michel.contacts.Contact.donneesPersonnelles -> donnee_contact
DEBUG - Retrieving property org.rondeau.michel.contacts.DonneePersonnelle.contact
DEBUG - Mapped collection key: contact_fk, one-to-many: org.rondeau.michel.contacts.DonneePersonnelle
INFO - processing association property references
INFO - processing foreign key constraints
DEBUG - resolving reference to class: org.rondeau.michel.contacts.Contact
DEBUG - resolving reference to class: org.rondeau.michel.contacts.Contact
log4j:INFO Creating new logger [org.hibernate.connection.ConnectionProviderFactory] in repository [default].
log4j:INFO Creating new logger [org.hibernate.connection.DriverManagerConnectionProvider] in repository [default].
INFO - Using Hibernate built-in connection pool (not for production use!)
INFO - Hibernate connection pool size: 1
INFO - autocommit mode: false
INFO - using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:hsql://localhost
INFO - connection properties: {user=sa, password=}
DEBUG - total checked-out connections: 0
DEBUG - opening new JDBC connection
DEBUG - created connection to: jdbc:hsqldb:hsql://localhost, Isolation Level: 0
INFO - RDBMS: HSQL Database Engine, version: 1.8.0
INFO - JDBC driver: HSQL Database Engine Driver, version: 1.8.0
DEBUG - returning connection to pool, pool size: 1
log4j:INFO Creating new logger [org.hibernate.dialect.Dialect] in repository [default].
INFO - Using dialect: org.hibernate.dialect.HSQLDialect
log4j:INFO Creating new logger [org.hibernate.transaction.TransactionFactoryFactory] in repository [default].
INFO - Using default transaction strategy (direct JDBC transactions)
log4j:INFO Creating new logger [org.hibernate.transaction.TransactionManagerLookupFactory] in repository [default].
INFO - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
INFO - Automatic flush during beforeCompletion(): disabled
INFO - Automatic session close at end of transaction: disabled
INFO - JDBC batch size: 15
INFO - JDBC batch updates for versioned data: disabled
INFO - Scrollable result sets: enabled
DEBUG - Wrap result sets: disabled
INFO - JDBC3 getGeneratedKeys(): disabled
INFO - Connection release mode: auto
INFO - Default batch fetch size: 1
INFO - Generate SQL with comments: disabled
INFO - Order SQL updates by primary key: disabled
INFO - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
log4j:INFO Creating new logger [org.hibernate.hql.ast.ASTQueryTranslatorFactory] in repository [default].
INFO - Using ASTQueryTranslatorFactory
INFO - Query language substitutions: {}
INFO - Second-level cache: enabled
INFO - Query cache: disabled
INFO - Cache provider: org.hibernate.cache.NoCacheProvider
INFO - Optimize cache for minimal puts: disabled
INFO - Structured second-level cache entries: disabled
log4j:INFO Creating new logger [org.hibernate.exception.SQLExceptionConverterFactory] in repository [default].
DEBUG - Using dialect defined converter
INFO - Echoing all SQL to stdout
INFO - Statistics: disabled
INFO - Deleted entity synthetic identifier rollback: disabled
INFO - Default entity-mode: pojo
log4j:INFO Creating new logger [org.hibernate.impl.SessionFactoryImpl] in repository [default].
log4j:INFO Creating new logger [org.hibernate.stat.StatisticsImpl] in repository [default].
log4j:INFO Creating new logger [org.hibernate.engine.query.QueryPlanCache] in repository [default].
INFO - building session factory
DEBUG - Session factory constructed with filter configurations : {}
DEBUG - instantiating session factory with properties: {java.vendor=Sun Microsystems Inc., show_sql=true, hibernate.connection.url=jdbc:hsqldb:hsql://localhost, sun.management.compiler=HotSpot Client Compiler, os.name=Windows XP, hbm2ddl.auto=create, sun.boot.class.path=C:\Program Files\Java\jdk1.5.0_06\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\i18n.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\jce.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.5.0_06\jre\classes, hibernate.current_session_context_class=thread, sun.desktop=windows, java.vm.specification.vendor=Sun Microsystems Inc., java.runtime.version=1.5.0_06-b05, hibernate.cache.provider_class=org.hibernate.cache.NoCacheProvider, user.name=rondmic, connection.driver_class=org.hsqldb.jdbcDriver, current_session_context_class=thread, user.language=fr, sun.boot.library.path=C:\Program Files\Java\jdk1.5.0_06\jre\bin, dialect=org.hibernate.dialect.HSQLDialect, java.version=1.5.0_06, user.timezone=, sun.arch.data.model=32, java.endorsed.dirs=C:\Program Files\Java\jdk1.5.0_06\jre\lib\endorsed, sun.cpu.isalist=, sun.jnu.encoding=Cp1252, file.encoding.pkg=sun.io, file.separator=\, java.specification.name=Java Platform API Specification, hibernate.cglib.use_reflection_optimizer=true, java.class.version=49.0, user.country=CA, connection.url=jdbc:hsqldb:hsql://localhost, java.home=C:\Program Files\Java\jdk1.5.0_06\jre, java.vm.info=mixed mode, os.version=5.1, path.separator=;, connection.password=, java.vm.version=1.5.0_06-b05, hibernate.connection.password=, user.variant=, java.awt.printerjob=sun.awt.windows.WPrinterJob, sun.io.unicode.encoding=UnicodeLittle, awt.toolkit=sun.awt.windows.WToolkit, hibernate.connection.username=sa, user.home=C:\Documents and Settings\rondmic, java.specification.vendor=Sun Microsystems Inc., hibernate.hbm2ddl.auto=create, java.library.path=C:\Program Files\Java\jdk1.5.0_06\bin;.;C:\WINXP\system32;C:\WINXP;C:\WINXP\system32;C:\WINXP;C:\WINXP\System32\Wbem;C:\Program Files\Fichiers communs\Adaptec Shared\System;C:\Program Files\QuickTime\QTSystem\;C:\PROGRA~1\Druide\Antidote\Antidote, java.vendor.url=http://java.sun.com/, hibernate.connection.driver_class=org.hsqldb.jdbcDriver, connection.username=sa, java.vm.vendor=Sun Microsystems Inc., hibernate.dialect=org.hibernate.dialect.HSQLDialect, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, java.class.path=C:\Documents and Settings\rondmic\workspace\GestionContacts;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\ejb3-persistence.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\hibernate3.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\hibernate-annotations.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\hsqldb.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\log4j-1.3alpha-6.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\lucene-1.4.3.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\ant-antlr-1.6.5.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\asm.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\asm-attrs.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\commons-collections-2.1.1.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\commons-logging-1.0.4.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\dom4j-1.6.1.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\ehcache-1.1.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\jta.jar;C:\Documents and Settings\rondmic\workspace\GestionContacts\lib\cglib-2.1.3.jar, java.vm.specification.name=Java Virtual Machine Specification, java.vm.specification.version=1.0, sun.cpu.endian=little, sun.os.patch.level=Service Pack 2, connection.pool_size=1, java.io.tmpdir=C:\DOCUME~1\rondmic\LOCALS~1\Temp\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, os.arch=x86, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.ext.dirs=C:\Program Files\Java\jdk1.5.0_06\jre\lib\ext, user.dir=C:\Documents and Settings\rondmic\workspace\GestionContacts, line.separator=
, java.vm.name=Java HotSpot(TM) Client VM, cache.provider_class=org.hibernate.cache.NoCacheProvider, file.encoding=Cp1252, java.specification.version=1.5, hibernate.connection.pool_size=1, hibernate.show_sql=true}
log4j:INFO Creating new logger [org.hibernate.id.IdentifierGeneratorFactory] in repository [default].
log4j:INFO Creating new logger [org.hibernate.engine.TransactionHelper] in repository [default].
log4j:INFO Creating new logger [org.hibernate.id.TableGenerator] in repository [default].
log4j:INFO Creating new logger [org.hibernate.id.TableHiLoGenerator] in repository [default].
log4j:INFO Creating new logger [org.hibernate.id.SequenceGenerator] in repository [default].
log4j:INFO Creating new logger [org.hibernate.id.SequenceHiLoGenerator] in repository [default].
log4j:INFO Creating new logger [org.hibernate.id.IncrementGenerator] in repository [default].
log4j:INFO Creating new logger [org.hibernate.id.GUIDGenerator] in repository [default].
log4j:INFO Creating new logger [org.hibernate.cache.CacheFactory] in repository [default].
log4j:INFO Creating new logger [org.hibernate.persister.entity.AbstractEntityPersister] in repository [default].
log4j:INFO Creating new logger [org.hibernate.tuple.EntityMetamodel] in repository [default].
log4j:INFO Creating new logger [org.hibernate.engine.IdentifierValue] in repository [default].
log4j:INFO Creating new logger [org.hibernate.engine.VersionValue] in repository [default].
log4j:INFO Creating new logger [org.hibernate.tuple.DynamicMapEntityTuplizer] in repository [default].
log4j:INFO Creating new logger [org.hibernate.tuple.PojoEntityTuplizer] in repository [default].
log4j:INFO Creating new logger [org.hibernate.tuple.PojoInstantiator] in repository [default].
DEBUG - reflection optimizer disabled for: org.rondeau.michel.contacts.Contact, BulkBeanException: Property is private (property setVersion)
DEBUG - Static SQL for entity: org.rondeau.michel.contacts.Contact
DEBUG - Version select: select OPTLOCK from contact where idContact =?
DEBUG - Snapshot select: select contact_.idContact, contact_.OPTLOCK as OPTLOCK0_, contact_.anniversaire as annivers3_0_, contact_.nom as nom0_, contact_.prefixe as prefixe0_, contact_.prenom as prenom0_, contact_.titre as titre0_ from contact contact_ where contact_.idContact=?
DEBUG - Insert 0: insert into contact (OPTLOCK, anniversaire, nom, prefixe, prenom, titre, idContact) values (?, ?, ?, ?, ?, ?, ?)
DEBUG - Update 0: update contact set OPTLOCK=?, anniversaire=?, nom=?, prefixe=?, prenom=?, titre=? where idContact=? and OPTLOCK=?
DEBUG - Delete 0: delete from contact where idContact=? and OPTLOCK=?
DEBUG - reflection optimizer disabled for: org.rondeau.michel.contacts.DonneePersonnelle, BulkBeanException: Property is private (property setContact)
DEBUG - Static SQL for entity: org.rondeau.michel.contacts.DonneePersonnelle
DEBUG - Version select: select type from donnee_contact where type =?
DEBUG - Snapshot select: select donneepers_.type, donneepers_.contact_fk as contact3_2_, donneepers_.valeur as valeur2_ from donnee_contact donneepers_ where donneepers_.type=?
DEBUG - Insert 0: insert into donnee_contact (contact_fk, valeur, type) values (?, ?, ?)
DEBUG - Update 0: update donnee_contact set contact_fk=?, valeur=? where type=?
DEBUG - Delete 0: delete from donnee_contact where type=?
DEBUG - reflection optimizer disabled for: org.rondeau.michel.contacts.Coordonnee, BulkBeanException: Property is private (property setContact)
DEBUG - Static SQL for entity: org.rondeau.michel.contacts.Coordonnee
DEBUG - Version select: select type from Coordonnee where type =?
DEBUG - Snapshot select: select coordonnee_.type, coordonnee_.contact_fk as contact4_1_, coordonnee_.numero as numero1_ from Coordonnee coordonnee_ where coordonnee_.type=?
DEBUG - Insert 0: insert into Coordonnee (contact_fk, numero, type) values (?, ?, ?)
DEBUG - Update 0: update Coordonnee set contact_fk=?, numero=? where type=?
DEBUG - Delete 0: delete from Coordonnee where type=?
log4j:INFO Creating new logger [org.hibernate.persister.collection.AbstractCollectionPersister] in repository [default].
DEBUG - Static SQL for collection: org.rondeau.michel.contacts.Contact.coordonnees
DEBUG - Row insert: update Coordonnee set contact_fk=? where type=?
DEBUG - Row delete: update Coordonnee set contact_fk=null where contact_fk=? and type=?
DEBUG - One-shot delete: update Coordonnee set contact_fk=null where contact_fk=?
DEBUG - Static SQL for collection: org.rondeau.michel.contacts.Contact.donneesPersonnelles
DEBUG - Row insert: update donnee_contact set contact_fk=? where type=?
DEBUG - Row delete: update donnee_contact set contact_fk=null where contact_fk=? and type=?
DEBUG - One-shot delete: update donnee_contact set contact_fk=null where contact_fk=?
log4j:INFO Creating new logger [org.hibernate.loader.Loader] in repository [default].
log4j:INFO Creating new logger [org.hibernate.loader.entity.EntityLoader] in repository [default].
DEBUG - Static select for entity org.rondeau.michel.contacts.Contact: select contact0_.idContact as idContact0_0_, contact0_.OPTLOCK as OPTLOCK0_0_, contact0_.anniversaire as annivers3_0_0_, contact0_.nom as nom0_0_, contact0_.prefixe as prefixe0_0_, contact0_.prenom as prenom0_0_, contact0_.titre as titre0_0_ from contact contact0_ where contact0_.idContact=?
DEBUG - Static select for entity org.rondeau.michel.contacts.Contact: select contact0_.idContact as idContact0_0_, contact0_.OPTLOCK as OPTLOCK0_0_, contact0_.anniversaire as annivers3_0_0_, contact0_.nom as nom0_0_, contact0_.prefixe as prefixe0_0_, contact0_.prenom as prenom0_0_, contact0_.titre as titre0_0_ from contact contact0_ where contact0_.idContact=?
DEBUG - Static select for entity org.rondeau.michel.contacts.Contact: select contact0_.idContact as idContact0_0_, contact0_.OPTLOCK as OPTLOCK0_0_, contact0_.anniversaire as annivers3_0_0_, contact0_.nom as nom0_0_, contact0_.prefixe as prefixe0_0_, contact0_.prenom as prenom0_0_, contact0_.titre as titre0_0_ from contact contact0_ where contact0_.idContact=?
DEBUG - Static select for entity org.rondeau.michel.contacts.Contact: select contact0_.idContact as idContact0_0_, contact0_.OPTLOCK as OPTLOCK0_0_, contact0_.anniversaire as annivers3_0_0_, contact0_.nom as nom0_0_, contact0_.prefixe as prefixe0_0_, contact0_.prenom as prenom0_0_, contact0_.titre as titre0_0_ from contact contact0_ where contact0_.idContact=?
log4j:INFO Creating new logger [org.hibernate.engine.CascadingAction] in repository [default].
DEBUG - Static select for action ACTION_MERGE on entity org.rondeau.michel.contacts.Contact: select contact0_.idContact as idContact0_0_, contact0_.OPTLOCK as OPTLOCK0_0_, contact0_.anniversaire as annivers3_0_0_, contact0_.nom as nom0_0_, contact0_.prefixe as prefixe0_0_, contact0_.prenom as prenom0_0_, contact0_.titre as titre0_0_ from contact contact0_ where contact0_.idContact=?
DEBUG - Static select for action ACTION_REFRESH on entity org.rondeau.michel.contacts.Contact: select contact0_.idContact as idContact0_0_, contact0_.OPTLOCK as OPTLOCK0_0_, contact0_.anniversaire as annivers3_0_0_, contact0_.nom as nom0_0_, contact0_.prefixe as prefixe0_0_, contact0_.prenom as prenom0_0_, contact0_.titre as titre0_0_ from contact contact0_ where contact0_.idContact=?
DEBUG - Static select for entity org.rondeau.michel.contacts.DonneePersonnelle: select donneepers0_.type as type2_1_, donneepers0_.contact_fk as contact3_2_1_, donneepers0_.valeur as valeur2_1_, contact1_.idContact as idContact0_0_, contact1_.OPTLOCK as OPTLOCK0_0_, contact1_.anniversaire as annivers3_0_0_, contact1_.nom as nom0_0_, contact1_.prefixe as prefixe0_0_, contact1_.prenom as prenom0_0_, contact1_.titre as titre0_0_ from donnee_contact donneepers0_ left outer join contact contact1_ on donneepers0_.contact_fk=contact1_.idContact where donneepers0_.type=?
DEBUG - Static select for entity org.rondeau.michel.contacts.DonneePersonnelle: select donneepers0_.type as type2_1_, donneepers0_.contact_fk as contact3_2_1_, donneepers0_.valeur as valeur2_1_, contact1_.idContact as idContact0_0_, contact1_.OPTLOCK as OPTLOCK0_0_, contact1_.anniversaire as annivers3_0_0_, contact1_.nom as nom0_0_, contact1_.prefixe as prefixe0_0_, contact1_.prenom as prenom0_0_, contact1_.titre as titre0_0_ from donnee_contact donneepers0_ left outer join contact contact1_ on donneepers0_.contact_fk=contact1_.idContact where donneepers0_.type=?
DEBUG - Static select for entity org.rondeau.michel.contacts.DonneePersonnelle: select donneepers0_.type as type2_0_, donneepers0_.contact_fk as contact3_2_0_, donneepers0_.valeur as valeur2_0_ from donnee_contact donneepers0_ where donneepers0_.type=?
DEBUG - Static select for entity org.rondeau.michel.contacts.DonneePersonnelle: select donneepers0_.type as type2_0_, donneepers0_.contact_fk as contact3_2_0_, donneepers0_.valeur as valeur2_0_ from donnee_contact donneepers0_ where donneepers0_.type=?
DEBUG - Static select for action ACTION_MERGE on entity org.rondeau.michel.contacts.DonneePersonnelle: select donneepers0_.type as type2_1_, donneepers0_.contact_fk as contact3_2_1_, donneepers0_.valeur as valeur2_1_, contact1_.idContact as idContact0_0_, contact1_.OPTLOCK as OPTLOCK0_0_, contact1_.anniversaire as annivers3_0_0_, contact1_.nom as nom0_0_, contact1_.prefixe as prefixe0_0_, contact1_.prenom as prenom0_0_, contact1_.titre as titre0_0_ from donnee_contact donneepers0_ left outer join contact contact1_ on donneepers0_.contact_fk=contact1_.idContact where donneepers0_.type=?
DEBUG - Static select for action ACTION_REFRESH on entity org.rondeau.michel.contacts.DonneePersonnelle: select donneepers0_.type as type2_1_, donneepers0_.contact_fk as contact3_2_1_, donneepers0_.valeur as valeur2_1_, contact1_.idContact as idContact0_0_, contact1_.OPTLOCK as OPTLOCK0_0_, contact1_.anniversaire as annivers3_0_0_, contact1_.nom as nom0_0_, contact1_.prefixe as prefixe0_0_, contact1_.prenom as prenom0_0_, contact1_.titre as titre0_0_ from donnee_contact donneepers0_ left outer join contact contact1_ on donneepers0_.contact_fk=contact1_.idContact where donneepers0_.type=?
DEBUG - Static select for entity org.rondeau.michel.contacts.Coordonnee: select coordonnee0_.type as type1_1_, coordonnee0_.contact_fk as contact4_1_1_, coordonnee0_.numero as numero1_1_, contact1_.idContact as idContact0_0_, contact1_.OPTLOCK as OPTLOCK0_0_, contact1_.anniversaire as annivers3_0_0_, contact1_.nom as nom0_0_, contact1_.prefixe as prefixe0_0_, contact1_.prenom as prenom0_0_, contact1_.titre as titre0_0_ from Coordonnee coordonnee0_ left outer join contact contact1_ on coordonnee0_.contact_fk=contact1_.idContact where coordonnee0_.type=?
DEBUG - Static select for entity org.rondeau.michel.contacts.Coordonnee: select coordonnee0_.type as type1_1_, coordonnee0_.contact_fk as contact4_1_1_, coordonnee0_.numero as numero1_1_, contact1_.idContact as idContact0_0_, contact1_.OPTLOCK as OPTLOCK0_0_, contact1_.anniversaire as annivers3_0_0_, contact1_.nom as nom0_0_, contact1_.prefixe as prefixe0_0_, contact1_.prenom as prenom0_0_, contact1_.titre as titre0_0_ from Coordonnee coordonnee0_ left outer join contact contact1_ on coordonnee0_.contact_fk=contact1_.idContact where coordonnee0_.type=?
DEBUG - Static select for entity org.rondeau.michel.contacts.Coordonnee: select coordonnee0_.type as type1_0_, coordonnee0_.contact_fk as contact4_1_0_, coordonnee0_.numero as numero1_0_ from Coordonnee coordonnee0_ where coordonnee0_.type=?
DEBUG - Static select for entity org.rondeau.michel.contacts.Coordonnee: select coordonnee0_.type as type1_0_, coordonnee0_.contact_fk as contact4_1_0_, coordonnee0_.numero as numero1_0_ from Coordonnee coordonnee0_ where coordonnee0_.type=?
DEBUG - Static select for action ACTION_MERGE on entity org.rondeau.michel.contacts.Coordonnee: select coordonnee0_.type as type1_1_, coordonnee0_.contact_fk as contact4_1_1_, coordonnee0_.numero as numero1_1_, contact1_.idContact as idContact0_0_, contact1_.OPTLOCK as OPTLOCK0_0_, contact1_.anniversaire as annivers3_0_0_, contact1_.nom as nom0_0_, contact1_.prefixe as prefixe0_0_, contact1_.prenom as prenom0_0_, contact1_.titre as titre0_0_ from Coordonnee coordonnee0_ left outer join contact contact1_ on coordonnee0_.contact_fk=contact1_.idContact where coordonnee0_.type=?
DEBUG - Static select for action ACTION_REFRESH on entity org.rondeau.michel.contacts.Coordonnee: select coordonnee0_.type as type1_1_, coordonnee0_.contact_fk as contact4_1_1_, coordonnee0_.numero as numero1_1_, contact1_.idContact as idContact0_0_, contact1_.OPTLOCK as OPTLOCK0_0_, contact1_.anniversaire as annivers3_0_0_, contact1_.nom as nom0_0_, contact1_.prefixe as prefixe0_0_, contact1_.prenom as prenom0_0_, contact1_.titre as titre0_0_ from Coordonnee coordonnee0_ left outer join contact contact1_ on coordonnee0_.contact_fk=contact1_.idContact where coordonnee0_.type=?
log4j:INFO Creating new logger [org.hibernate.loader.collection.OneToManyLoader] in repository [default].
DEBUG - Static select for one-to-many org.rondeau.michel.contacts.Contact.coordonnees: select coordonnee0_.contact_fk as contact4_1_, coordonnee0_.type as type1_, coordonnee0_.type as type1_0_, coordonnee0_.contact_fk as contact4_1_0_, coordonnee0_.numero as numero1_0_ from Coordonnee coordonnee0_ where coordonnee0_.contact_fk=?
DEBUG - Static select for one-to-many org.rondeau.michel.contacts.Contact.donneesPersonnelles: select donneesper0_.contact_fk as contact3_1_, donneesper0_.type as type1_, donneesper0_.type as type2_0_, donneesper0_.contact_fk as contact3_2_0_, donneesper0_.valeur as valeur2_0_ from donnee_contact donneesper0_ where donneesper0_.contact_fk=? order by donneesper0_.type asc, donneesper0_.valeur asc
log4j:INFO Creating new logger [org.hibernate.impl.SessionFactoryObjectFactory] in repository [default].
DEBUG - initializing class SessionFactoryObjectFactory
DEBUG - registered: 402841f908fe8ffd0108fe9000c10000 (unnamed)
INFO - Not binding factory to JNDI, no JNDI name configured
DEBUG - instantiated session factory
log4j:INFO Creating new logger [org.hibernate.tool.hbm2ddl.SchemaExport] in repository [default].
DEBUG - Execute first pass mapping processing
DEBUG - Process hbm files
DEBUG - Process annotated classes
DEBUG - processing manytoone fk mappings
INFO - processing extends queue
INFO - processing collection mappings
INFO - processing association property references
INFO - processing foreign key constraints
DEBUG - resolving reference to class: org.rondeau.michel.contacts.Contact
DEBUG - resolving reference to class: org.rondeau.michel.contacts.Contact
DEBUG - Execute first pass mapping processing
DEBUG - Process hbm files
DEBUG - Process annotated classes
DEBUG - processing manytoone fk mappings
INFO - processing extends queue
INFO - processing collection mappings
INFO - processing association property references
INFO - processing foreign key constraints
DEBUG - resolving reference to class: org.rondeau.michel.contacts.Contact
DEBUG - resolving reference to class: org.rondeau.michel.contacts.Contact
INFO - Running hbm2ddl schema export
DEBUG - import file not found: /import.sql
INFO - exporting generated schema to database
DEBUG - total checked-out connections: 0
DEBUG - using pooled JDBC connection, pool size: 0
DEBUG - alter table Coordonnee drop constraint FK83020D9A12AB693D
DEBUG - alter table donnee_contact drop constraint FK934CA94C12AB693D
DEBUG - drop table Coordonnee if exists
DEBUG - drop table contact if exists
DEBUG - drop table donnee_contact if exists
DEBUG - create table Coordonnee (description varchar(255) not null, type varbinary(255) not null, numero varchar(255) not null, contact_fk bigint, primary key (type))
DEBUG - create table contact (idContact bigint not null, OPTLOCK bigint, anniversaire timestamp, nom varchar(30) not null, prefixe varchar(5), prenom varchar(30), titre varchar(30), primary key (idContact))
DEBUG - create table donnee_contact (type varchar(255) not null, valeur varchar(255) not null, contact_fk bigint, primary key (type))
DEBUG - alter table Coordonnee add constraint FK83020D9A12AB693D foreign key (contact_fk) references contact
DEBUG - create index nom on contact (nom, prenom)
DEBUG - alter table donnee_contact add constraint FK934CA94C12AB693D foreign key (contact_fk) references contact
INFO - schema export complete
log4j:INFO Creating new logger [org.hibernate.util.JDBCExceptionReporter] in repository [default].
DEBUG - returning connection to pool, pool size: 1
log4j:INFO Creating new logger [org.hibernate.context.ThreadLocalSessionContext] in repository [default].
INFO - Checking 0 named HQL queries
INFO - Checking 0 named SQL queries
log4j:INFO Creating new logger [org.hibernate.impl.SessionImpl] in repository [default].
log4j:INFO Creating new logger [org.hibernate.engine.ActionQueue] in repository [default].
log4j:INFO Creating new logger [org.hibernate.engine.StatefulPersistenceContext] in repository [default].
log4j:INFO Creating new logger [org.hibernate.jdbc.JDBCContext] in repository [default].
log4j:INFO Creating new logger [org.hibernate.jdbc.ConnectionManager] in repository [default].
log4j:INFO Creating new logger [org.hibernate.jdbc.AbstractBatcher] in repository [default].
log4j:INFO Creating new logger [org.hibernate.SQL] in repository [default].
DEBUG - opened session at timestamp: 11381422164
log4j:INFO Creating new logger [org.hibernate.transaction.JDBCTransaction] in repository [default].
DEBUG - begin
DEBUG - opening JDBC connection
DEBUG - total checked-out connections: 0
DEBUG - using pooled JDBC connection, pool size: 0
DEBUG - current autocommit status: false
DEBUG - after transaction begin
DEBUG - Contact[nom: Roux, prenom: Marcel, titre: plongeur, coordonnees: [], anniversaire: Fri Jul 21 00:00:00 EDT 1972, donneesPersonnelles: []]
DEBUG - Contact[nom: Roux, prenom: Marcel, titre: plongeur, coordonnees: [], anniversaire: Fri Jul 21 00:00:00 EDT 1972, donneesPersonnelles: []]
DEBUG - saving transient instance
DEBUG - generated identifier: 1, using strategy: org.hibernate.id.Assigned
DEBUG - saving [org.rondeau.michel.contacts.Contact#1]
log4j:INFO Creating new logger [org.hibernate.engine.Cascade] in repository [default].
log4j:INFO Creating new logger [org.hibernate.engine.Versioning] in repository [default].
DEBUG - using initial version: 0
log4j:INFO Creating new logger [org.hibernate.event.def.WrapVisitor] in repository [default].
log4j:INFO Creating new logger [org.hibernate.engine.CollectionEntry] in repository [default].
DEBUG - Wrapped collection in role: org.rondeau.michel.contacts.Contact.coordonnees
DEBUG - Wrapped collection in role: org.rondeau.michel.contacts.Contact.donneesPersonnelles
DEBUG - Contact[nom: Smith, prenom: Angela, titre: waitress, coordonnees: [], anniversaire: Tue Oct 06 00:00:00 EDT 1970, donneesPersonnelles: []]
DEBUG - Contact[nom: Smith, prenom: Angela, titre: waitress, coordonnees: [], anniversaire: Tue Oct 06 00:00:00 EDT 1970, donneesPersonnelles: []]
DEBUG - saving transient instance
DEBUG - generated identifier: 2, using strategy: org.hibernate.id.Assigned
DEBUG - saving [org.rondeau.michel.contacts.Contact#2]
DEBUG - using initial version: 0
DEBUG - Wrapped collection in role: org.rondeau.michel.contacts.Contact.coordonnees
DEBUG - Wrapped collection in role: org.rondeau.michel.contacts.Contact.donneesPersonnelles
DEBUG - commit
DEBUG - automatically flushing session
DEBUG - flushing session
DEBUG - processing flush-time cascades
DEBUG - dirty checking collections
DEBUG - Flushing entities and processing referenced collections
log4j:INFO Creating new logger [org.hibernate.engine.Collections] in repository [default].
DEBUG - Collection found: [org.rondeau.michel.contacts.Contact.coordonnees#1], was: [<unreferenced>] (initialized)
DEBUG - Collection found: [org.rondeau.michel.contacts.Contact.donneesPersonnelles#1], was: [<unreferenced>] (initialized)
DEBUG - Collection found: [org.rondeau.michel.contacts.Contact.coordonnees#2], was: [<unreferenced>] (initialized)
DEBUG - Collection found: [org.rondeau.michel.contacts.Contact.donneesPersonnelles#2], was: [<unreferenced>] (initialized)
DEBUG - Processing unreferenced collections
DEBUG - Scheduling collection removes/(re)creates/updates
DEBUG - Flushed: 2 insertions, 0 updates, 0 deletions to 2 objects
DEBUG - Flushed: 4 (re)creations, 0 updates, 0 removals to 4 collections
DEBUG - listing entities:
log4j:INFO Creating new logger [org.hibernate.pretty.Printer] in repository [default].
DEBUG - org.rondeau.michel.contacts.Contact{titre=waitress, prefixe=Miss, anniversaire=1970-10-06 00:00:00, donneesPersonnelles=[], prenom=Angela, idContact=2, coordonnees=[], nom=Smith, version=0}
DEBUG - org.rondeau.michel.contacts.Contact{titre=plongeur, prefixe=M., anniversaire=1972-07-21 00:00:00, donneesPersonnelles=[], prenom=Marcel, idContact=1, coordonnees=[], nom=Roux, version=0}
DEBUG - executing flush
DEBUG - Inserting entity: [org.rondeau.michel.contacts.Contact#1]
DEBUG - Version: 0
DEBUG - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
DEBUG - insert into contact (OPTLOCK, anniversaire, nom, prefixe, prenom, titre, idContact) values (?, ?, ?, ?, ?, ?, ?)
Hibernate: insert into contact (OPTLOCK, anniversaire, nom, prefixe, prenom, titre, idContact) values (?, ?, ?, ?, ?, ?, ?)
DEBUG - preparing statement
DEBUG - Dehydrating entity: [org.rondeau.michel.contacts.Contact#1]
DEBUG - binding '0' to parameter: 1
log4j:INFO Creating new logger [org.hibernate.type.LongType] in repository [default].
log4j:INFO Creating new logger [org.hibernate.type.TimestampType] in repository [default].
DEBUG - binding '1972-07-21 00:00:00' to parameter: 2
log4j:INFO Creating new logger [org.hibernate.type.StringType] in repository [default].DEBUG - binding 'Roux' to parameter: 3
DEBUG - binding 'M.' to parameter: 4
DEBUG - binding 'Marcel' to parameter: 5
DEBUG - binding 'plongeur' to parameter: 6
DEBUG - binding '1' to parameter: 7
DEBUG - Adding to batch
DEBUG - Inserting entity: [org.rondeau.michel.contacts.Contact#2]
DEBUG - Version: 0
DEBUG - reusing prepared statement
Hibernate: insert into contact (OPTLOCK, anniversaire, nom, prefixe, prenom, titre, idContact) values (?, ?, ?, ?, ?, ?, ?)
DEBUG - insert into contact (OPTLOCK, anniversaire, nom, prefixe, prenom, titre, idContact) values (?, ?, ?, ?, ?, ?, ?)
DEBUG - Dehydrating entity: [org.rondeau.michel.contacts.Contact#2]
DEBUG - binding '0' to parameter: 1
DEBUG - binding '1970-10-06 00:00:00' to parameter: 2
DEBUG - binding 'Smith' to parameter: 3
DEBUG - binding 'Miss' to parameter: 4
DEBUG - binding 'Angela' to parameter: 5
DEBUG - binding 'waitress' to parameter: 6
DEBUG - binding '2' to parameter: 7
DEBUG - Adding to batch
DEBUG - Executing batch size: 2
DEBUG - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
DEBUG - closing statement
DEBUG - post flush
DEBUG - before transaction completion
DEBUG - before transaction completion
DEBUG - committed JDBC Connection
DEBUG - after transaction completion
DEBUG - aggressively releasing JDBC connection
DEBUG - closing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
DEBUG - returning connection to pool, pool size: 1
DEBUG - after transaction completion
DEBUG - opened session at timestamp: 11381422166
DEBUG - closing session
DEBUG - connection already null in cleanup : no action