reHello
je viens de mettre en commentaire la ligne en rapport avec l'annotation
@Temporal
1 2 3
| @Column(name = "DATENAISSANCE", nullable = false)
//@Temporal(TemporalType.TIMESTAMP )
private Date dateNaissance; |
et Çà à l'air de marcher
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Buildfile: D:\TOOLS_JEE\PROJETS_ECLIPSE\JEE\sergeTahePersistenceJPA\hibernate-personnes-entites\ant-hibernate.xml
clean:
[delete] Deleting directory D:\TOOLS_JEE\PROJETS_ECLIPSE\JEE\sergeTahePersistenceJPA\hibernate-personnes-entites\bin
[mkdir] Created dir: D:\TOOLS_JEE\PROJETS_ECLIPSE\JEE\sergeTahePersistenceJPA\hibernate-personnes-entites\bin
compile:
[javac] Compiling 1 source file to D:\TOOLS_JEE\PROJETS_ECLIPSE\JEE\sergeTahePersistenceJPA\hibernate-personnes-entites\bin
copyconf:
[copy] Copying 3 files to D:\TOOLS_JEE\PROJETS_ECLIPSE\JEE\sergeTahePersistenceJPA\hibernate-personnes-entites\bin
DDL:
[hibernatetool] Executing Hibernate Tool with a JPA Configuration
[hibernatetool] 1. task: hbm2ddl (Generates database schema)
[hibernatetool]
[hibernatetool] drop table if exists jpa_01personne;
[hibernatetool]
[hibernatetool] create table jpa_01personne (
[hibernatetool] ID integer not null auto_increment,
[hibernatetool] VERSION integer not null,
[hibernatetool] NOM varchar(30) not null unique,
[hibernatetool] PRENOM varchar(30) not null,
[hibernatetool] DATENAISSANCE date not null,
[hibernatetool] MARIE bit not null,
[hibernatetool] NBENFANTS integer not null,
[hibernatetool] primary key (ID)
[hibernatetool] ) ENGINE=InnoDB;
BUILD SUCCESSFUL |
Je n'ai pas compris pourquoi
@Temporal(TemporalType.TIMESTAMP )
me cause ce problème
Partager