IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Spring Java Discussion :

Hibernate spring mysql


Sujet :

Spring Java

  1. #1
    Futur Membre du Club
    Homme Profil pro
    Développeur Java
    Inscrit en
    Juin 2016
    Messages
    17
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 32
    Localisation : France, Val d'Oise (Île de France)

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2016
    Messages : 17
    Points : 6
    Points
    6
    Par défaut Hibernate spring mysql
    Hello,

    Je suis entrain de devellopé une application (GESTION DE STOCK) et je suis bloqué toute la journée je n'arrive pas à trouvé le probléme est ce que quelqu'un pourrait m'aider slv

    La techno c'est hibernate et spring


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    package casa.entites;
     
    import java.io.Serializable;
     
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.Id;
     
    @Entity
    public class Produit implements Serializable{
     
    	private static final long serialVersionUID = 1L;
     
    	@Id
    	@GeneratedValue
    	private Long id;
    	private String ref;
    	@Column(name="description")
    	private String desc;
    	//private double price;
     
     
    	public Long getId() {
    		return id;
    	}
    	public void setId(Long id) {
    		this.id = id;
    	}
    	public String getRef() {
    		return ref;
    	}
    	public void setRef(String ref) {
    		this.ref = ref;
    	}
    	public String getDesc() {
    		return desc;
    	}
    	public void setDesc(String desc) {
    		this.desc = desc;
    	}
     
     
    	public Produit() {
    		super();
    		// TODO Auto-generated constructor stub
    	}
     
    	public Produit(String ref, String desc) {
    		super();
    		this.ref = ref;
    		this.desc = desc;
     
    	}
     
     
    	@Override
    	public String toString() {
    		return "Produit"
    				+ " [id=" + id +
    				", ref=" + ref 
    				+ ", desc=" + 
    				desc + "]";
    	}
     
     
     
     
     
     
     
    }
    Mon java Bean

  2. #2
    Futur Membre du Club
    Homme Profil pro
    Développeur Java
    Inscrit en
    Juin 2016
    Messages
    17
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 32
    Localisation : France, Val d'Oise (Île de France)

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2016
    Messages : 17
    Points : 6
    Points
    6
    Par défaut hibernat spring java
    La suite :

    Mon interface :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    package casa.dao;
     
    import casa.entites.Produit;
     
    public interface ProduitDao {
     
    	public void AjouterProduit(Produit produit);
    	public void ModifProduit(Produit produit);
    	public void SupprimerProduit(Long id);
    	public void ChercherProduitParNom(String ref);
    }


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
     
    Implementation de mon interface
     
    package casa.dao.imp;
     
    import java.util.List;
     
    import casa.dao.ProduitDao;
    import casa.entites.Produit;
    import casa.util.CustomHibernateDaoSupport;
     
    public class ProduitdaoImp extends CustomHibernateDaoSupport implements ProduitDao{
     
    	@Override
    	public void AjouterProduit(Produit produit) {
    		// TODO Auto-generated method stub
    		getHibernateTemplate().save(produit);
    	}
     
    	@Override
    	public void ModifProduit(Produit produit) {
    		// TODO Auto-generated method stub
    		getHibernateTemplate().update(produit);
    	}
     
    	@Override
    	public void SupprimerProduit(Long id) {
    		// TODO Auto-generated method stub
    		getHibernateTemplate().delete(id);
    	}
     
    	@Override
    	public void ChercherProduitParNom(String ref) {
    		// TODO Auto-generated method stub
    		java.awt.List list = (java.awt.List) getHibernateTemplate().find("from stock where=?",ref);
    		((List<?>) list).get(0);
    	}
     
    }

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    package casa.metier;
     
    import casa.entites.Produit;
     
    public interface IProduitMetier{
     
    		public void addProduit(Produit produit);
    		public void UpdateProduit(Produit produit);
    		public void deleteProduit(Long id);
    		public void SearcheByNom(String ref);
     
    }

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    package casa.metier;
     
    import org.springframework.beans.factory.annotation.Autowired;
     
    import casa.entites.Produit;
     
     
    public class produitMetierImpl implements IProduitMetier{
     
    	@Autowired
    	private IProduitMetier prods;
     
    	@Override
    	public void addProduit(Produit produit) {
    		// TODO Auto-generated method stub
    		prods.addProduit(produit);
    	}
     
    	@Override
    	public void UpdateProduit(Produit produit) {
    		// TODO Auto-generated method stub
    		prods.UpdateProduit(produit);
    	}
     
    	@Override
    	public void deleteProduit(Long id) {
    		// TODO Auto-generated method stub
    		prods.deleteProduit(id);
    	}
     
    	@Override
    	public void SearcheByNom(String ref) {
    		// TODO Auto-generated method stub
    		prods.SearcheByNom(ref);
    	}
     
    }

  3. #3
    Futur Membre du Club
    Homme Profil pro
    Développeur Java
    Inscrit en
    Juin 2016
    Messages
    17
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 32
    Localisation : France, Val d'Oise (Île de France)

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2016
    Messages : 17
    Points : 6
    Points
    6
    Par défaut hibernat spring java
    La suite :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    package casa.util;
     
    import org.hibernate.SessionFactory;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
     
    public abstract class CustomHibernateDaoSupport extends HibernateDaoSupport{
     
    	@Autowired
    	public void AnnyMethod(SessionFactory factory){
     
    		setSessionFactory(factory);
    	}
     
    }


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    import org.springframework.context.ApplicationContext;
    import org.springframework.context.support.ClassPathXmlApplicationContext;
     
    import casa.entites.Produit;
    import casa.metier.IProduitMetier;
     
    public class SATIC {
     
    	public static void main(String[] args) {
     
    		@SuppressWarnings("resource")
    		ApplicationContext applicationContext = 
    				new ClassPathXmlApplicationContext("BeanLocations.xml");
    		IProduitMetier dao = (IProduitMetier) applicationContext.getBean("IProduitMetier");
    		Produit produit = new Produit();
    		produit.setDesc("MAC");
    		produit.setRef("11478c5sf2");
    		dao.addProduit(produit);
    	}
     
    }

  4. #4
    Futur Membre du Club
    Homme Profil pro
    Développeur Java
    Inscrit en
    Juin 2016
    Messages
    17
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 32
    Localisation : France, Val d'Oise (Île de France)

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2016
    Messages : 17
    Points : 6
    Points
    6
    Par défaut hibernat spring java
    la structure de mon projet est ;


    Nom : Sans titre.png
Affichages : 1166
Taille : 23,7 Ko

    BeanLocation est :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:context="http://www.springframework.org/schema/context"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
    http://www.springframework.org/schema/context
    http://www.springframework.org/schema/context/spring-context-2.5.xsd">
     
    	<!-- Database Configuration -->
    	<import resource="DataSource.xml"/>
    	<import resource="Hibernate.xml"/>
     
    	<!-- Auto scan the components -->
    	<context:component-scan
    		base-package="casa" />
     
    </beans>


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    jdbc.driverClassName=com.mysql.jdbc.Driver
    jdbc.url=jdbc:mysql://localhost:3306/aimad
    jdbc.username=root
    jdbc.password=

    DataSource
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
     
    <bean
    class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    	<property name="location">
    		<value>database.properties</value>
    	</property>
    </bean>
     
    <bean id="dataSource"
             class="org.springframework.jdbc.datasource.DriverManagerDataSource">
    	<property name="driverClassName" value="${jdbc.driverClassName}" />
    	<property name="url" value="${jdbc.url}" />
    	<property name="username" value="${jdbc.username}" />
    	<property name="password" value="" />
    </bean>
     
    </beans>

    hibernate
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
    	xmlns:tx="http://www.springframework.org/schema/tx"
    	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
    		http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
    		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd">
     
    	<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
    		destroy-method="close">
    		<property name="driverClassName" value="com.mysql.jdbc.Driver" />
    		<property name="url" value="jdbc:mysql://localhost:3306/aimad" />
    		<property name="username" value="root" />
    		<property name="password" value="" />
    	</bean>
     
     
    <!-- Hibernate 4 SessionFactory Bean definition -->
    <bean id="hibernate4AnnotatedSessionFactory"
    		class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
    		<property name="dataSource" ref="dataSource" />
    		<property name="annotatedClasses">
    			<list>
    			<value>casa.entites.Produit</value>
    			</list>
    		</property>
    		<property name="hibernateProperties">
    			<props>
    				<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
    				<prop key="hibernate.current_session_context_class">thread</prop>
    				<prop key="hibernate.show_sql">false</prop>
    			</props>
    		</property>
    	</bean>
     
     
     
    </beans>

    J'espére si quelqu'un peut m'aider je suis vraiment bloqué
    Merci d'avance

  5. #5
    Futur Membre du Club
    Homme Profil pro
    Développeur Java
    Inscrit en
    Juin 2016
    Messages
    17
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 32
    Localisation : France, Val d'Oise (Île de France)

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2016
    Messages : 17
    Points : 6
    Points
    6
    Par défaut hibernat spring java
    L'erreur est :


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    janv. 02, 2017 6:46:57 PM org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh
    INFOS: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@69d0a921: startup date [Mon Jan 02 18:46:57 CET 2017]; root of context hierarchy
    janv. 02, 2017 6:46:58 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    INFOS: Loading XML bean definitions from class path resource [BeanLocations.xml]
    janv. 02, 2017 6:46:58 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    INFOS: Loading XML bean definitions from class path resource [DataSource.xml]
    janv. 02, 2017 6:46:58 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    INFOS: Loading XML bean definitions from class path resource [Hibernate.xml]
    janv. 02, 2017 6:46:58 PM org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
    INFOS: Overriding bean definition for bean 'dataSource': replacing [Generic bean: class [org.springframework.jdbc.datasource.DriverManagerDataSource]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [DataSource.xml]] with [Generic bean: class [org.apache.commons.dbcp.BasicDataSource]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=close; defined in class path resource [Hibernate.xml]]
    janv. 02, 2017 6:46:59 PM org.springframework.beans.factory.config.PropertyPlaceholderConfigurer loadProperties
    INFOS: Loading properties file from class path resource [database.properties]
    18:46:59.924 [main] DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider
    18:47:00.026 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration boolean -> org.hibernate.type.BooleanType@433d61fb
    18:47:00.026 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration boolean -> org.hibernate.type.BooleanType@433d61fb
    18:47:00.027 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.Boolean -> org.hibernate.type.BooleanType@433d61fb
    18:47:00.030 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration numeric_boolean -> org.hibernate.type.NumericBooleanType@1534f01b
    18:47:00.034 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration true_false -> org.hibernate.type.TrueFalseType@3eb7fc54
    18:47:00.035 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration yes_no -> org.hibernate.type.YesNoType@460d0a57
    18:47:00.039 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration byte -> org.hibernate.type.ByteType@6af93788
    18:47:00.040 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration byte -> org.hibernate.type.ByteType@6af93788
    18:47:00.040 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.Byte -> org.hibernate.type.ByteType@6af93788
    18:47:00.043 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration character -> org.hibernate.type.CharacterType@1c93084c
    18:47:00.044 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration char -> org.hibernate.type.CharacterType@1c93084c
    18:47:00.045 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.Character -> org.hibernate.type.CharacterType@1c93084c
    18:47:00.053 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration short -> org.hibernate.type.ShortType@69b2283a
    18:47:00.053 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration short -> org.hibernate.type.ShortType@69b2283a
    18:47:00.055 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.Short -> org.hibernate.type.ShortType@69b2283a
    18:47:00.058 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration integer -> org.hibernate.type.IntegerType@2473d930
    18:47:00.058 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration int -> org.hibernate.type.IntegerType@2473d930
    18:47:00.059 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.Integer -> org.hibernate.type.IntegerType@2473d930
    18:47:00.063 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration long -> org.hibernate.type.LongType@be64738
    18:47:00.063 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration long -> org.hibernate.type.LongType@be64738
    18:47:00.063 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.Long -> org.hibernate.type.LongType@be64738
    18:47:00.068 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration float -> org.hibernate.type.FloatType@61230f6a
    18:47:00.068 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration float -> org.hibernate.type.FloatType@61230f6a
    18:47:00.068 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.Float -> org.hibernate.type.FloatType@61230f6a
    18:47:00.072 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration double -> org.hibernate.type.DoubleType@3e92efc3
    18:47:00.072 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration double -> org.hibernate.type.DoubleType@3e92efc3
    18:47:00.073 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.Double -> org.hibernate.type.DoubleType@3e92efc3
    18:47:00.096 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration big_decimal -> org.hibernate.type.BigDecimalType@34b7ac2f
    18:47:00.097 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.math.BigDecimal -> org.hibernate.type.BigDecimalType@34b7ac2f
    18:47:00.111 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration big_integer -> org.hibernate.type.BigIntegerType@2667f029
    18:47:00.112 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.math.BigInteger -> org.hibernate.type.BigIntegerType@2667f029
    18:47:00.114 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration string -> org.hibernate.type.StringType@64cd705f
    18:47:00.115 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.String -> org.hibernate.type.StringType@64cd705f
    18:47:00.117 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration nstring -> org.hibernate.type.StringNVarcharType@7e0b85f9
    18:47:00.119 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration ncharacter -> org.hibernate.type.CharacterNCharType@1700915
    18:47:00.122 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration url -> org.hibernate.type.UrlType@635eaaf1
    18:47:00.124 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.net.URL -> org.hibernate.type.UrlType@635eaaf1
    18:47:00.139 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration date -> org.hibernate.type.DateType@6ca8564a
    18:47:00.141 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.sql.Date -> org.hibernate.type.DateType@6ca8564a
    18:47:00.172 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration time -> org.hibernate.type.TimeType@76508ed1
    18:47:00.173 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.sql.Time -> org.hibernate.type.TimeType@76508ed1
    18:47:00.176 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration timestamp -> org.hibernate.type.TimestampType@39529185
    18:47:00.177 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.sql.Timestamp -> org.hibernate.type.TimestampType@39529185
    18:47:00.177 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.util.Date -> org.hibernate.type.TimestampType@39529185
    18:47:00.182 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration dbtimestamp -> org.hibernate.type.DbTimestampType@31c88ec8
    18:47:00.186 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration calendar -> org.hibernate.type.CalendarType@7ed7259e
    18:47:00.186 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.util.Calendar -> org.hibernate.type.CalendarType@7ed7259e
    18:47:00.186 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.util.GregorianCalendar -> org.hibernate.type.CalendarType@7ed7259e
    18:47:00.188 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration calendar_date -> org.hibernate.type.CalendarDateType@647e447
    18:47:00.191 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration locale -> org.hibernate.type.LocaleType@130161f7
    18:47:00.191 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.util.Locale -> org.hibernate.type.LocaleType@130161f7
    18:47:00.193 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration currency -> org.hibernate.type.CurrencyType@2ef3eef9
    18:47:00.194 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.util.Currency -> org.hibernate.type.CurrencyType@2ef3eef9
    18:47:00.196 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration timezone -> org.hibernate.type.TimeZoneType@16ec5519
    18:47:00.197 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.util.TimeZone -> org.hibernate.type.TimeZoneType@16ec5519
    18:47:00.201 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration class -> org.hibernate.type.ClassType@5119fb47
    18:47:00.201 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.Class -> org.hibernate.type.ClassType@5119fb47
    18:47:00.204 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration uuid-binary -> org.hibernate.type.UUIDBinaryType@6eda5c9
    18:47:00.205 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.util.UUID -> org.hibernate.type.UUIDBinaryType@6eda5c9
    18:47:00.206 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration uuid-char -> org.hibernate.type.UUIDCharType@192d43ce
    18:47:00.208 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration pg-uuid -> org.hibernate.type.PostgresUUIDType@43195e57
    18:47:00.210 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration binary -> org.hibernate.type.BinaryType@6e171cd7
    18:47:00.210 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration byte[] -> org.hibernate.type.BinaryType@6e171cd7
    18:47:00.211 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration [B -> org.hibernate.type.BinaryType@6e171cd7
    18:47:00.213 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration wrapper-binary -> org.hibernate.type.WrapperBinaryType@dbf57b3
    18:47:00.213 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration Byte[] -> org.hibernate.type.WrapperBinaryType@dbf57b3
    18:47:00.213 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration [Ljava.lang.Byte; -> org.hibernate.type.WrapperBinaryType@dbf57b3
    18:47:00.215 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration image -> org.hibernate.type.ImageType@1d9b7cce
    18:47:00.217 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration characters -> org.hibernate.type.CharArrayType@6c80d78a
    18:47:00.218 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration char[] -> org.hibernate.type.CharArrayType@6c80d78a
    18:47:00.218 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration [C -> org.hibernate.type.CharArrayType@6c80d78a
    18:47:00.220 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration wrapper-characters -> org.hibernate.type.CharacterArrayType@6dc17b83
    18:47:00.220 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration [Ljava.lang.Character; -> org.hibernate.type.CharacterArrayType@6dc17b83
    18:47:00.221 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration Character[] -> org.hibernate.type.CharacterArrayType@6dc17b83
    18:47:00.223 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration text -> org.hibernate.type.TextType@71809907
    18:47:00.224 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration ntext -> org.hibernate.type.NTextType@47af7f3d
    18:47:00.249 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration blob -> org.hibernate.type.BlobType@67d48005
    18:47:00.249 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.sql.Blob -> org.hibernate.type.BlobType@67d48005
    18:47:00.250 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration materialized_blob -> org.hibernate.type.MaterializedBlobType@1aa7ecca
    18:47:00.274 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration clob -> org.hibernate.type.ClobType@79e2c065
    18:47:00.275 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.sql.Clob -> org.hibernate.type.ClobType@79e2c065
    18:47:00.282 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration nclob -> org.hibernate.type.NClobType@2b662a77
    18:47:00.282 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.sql.NClob -> org.hibernate.type.NClobType@2b662a77
    18:47:00.284 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration materialized_clob -> org.hibernate.type.MaterializedClobType@1623b78d
    18:47:00.285 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration materialized_nclob -> org.hibernate.type.MaterializedNClobType@4550bb58
    18:47:00.288 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration serializable -> org.hibernate.type.SerializableType@6069db50
    18:47:00.305 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration object -> org.hibernate.type.ObjectType@55183b20
    18:47:00.306 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.Object -> org.hibernate.type.ObjectType@55183b20
    18:47:00.307 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration imm_date -> org.hibernate.type.AdaptedImmutableType@7d8995e
    18:47:00.308 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration imm_time -> org.hibernate.type.AdaptedImmutableType@130d63be
    18:47:00.308 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration imm_timestamp -> org.hibernate.type.AdaptedImmutableType@42a48628
    18:47:00.308 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration imm_dbtimestamp -> org.hibernate.type.AdaptedImmutableType@293a5bf6
    18:47:00.309 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration imm_calendar -> org.hibernate.type.AdaptedImmutableType@6aeb35e6
    18:47:00.309 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration imm_calendar_date -> org.hibernate.type.AdaptedImmutableType@1283bb96
    18:47:00.309 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration imm_binary -> org.hibernate.type.AdaptedImmutableType@74f0ea28
    18:47:00.309 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration imm_serializable -> org.hibernate.type.AdaptedImmutableType@f6efaab
    18:47:00.372 [main] INFO  o.h.annotations.common.Version - HCANN000001: Hibernate Commons Annotations {4.0.4.Final}
    18:47:00.387 [main] INFO  org.hibernate.Version - HHH000412: Hibernate Core {4.3.5.Final}
    18:47:00.391 [main] INFO  org.hibernate.cfg.Environment - HHH000206: hibernate.properties not found
    18:47:00.396 [main] INFO  org.hibernate.cfg.Environment - HHH000021: Bytecode provider name : javassist
    18:47:00.428 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [uuid2] -> [org.hibernate.id.UUIDGenerator]
    18:47:00.429 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [guid] -> [org.hibernate.id.GUIDGenerator]
    18:47:00.431 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [uuid] -> [org.hibernate.id.UUIDHexGenerator]
    18:47:00.431 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [uuid.hex] -> [org.hibernate.id.UUIDHexGenerator]
    18:47:00.434 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [hilo] -> [org.hibernate.id.TableHiLoGenerator]
    18:47:00.435 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [assigned] -> [org.hibernate.id.Assigned]
    18:47:00.438 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [identity] -> [org.hibernate.id.IdentityGenerator]
    18:47:00.439 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [select] -> [org.hibernate.id.SelectGenerator]
    18:47:00.441 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [sequence] -> [org.hibernate.id.SequenceGenerator]
    18:47:00.442 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [seqhilo] -> [org.hibernate.id.SequenceHiLoGenerator]
    18:47:00.443 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [increment] -> [org.hibernate.id.IncrementGenerator]
    18:47:00.444 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [foreign] -> [org.hibernate.id.ForeignGenerator]
    18:47:00.445 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [sequence-identity] -> [org.hibernate.id.SequenceIdentityGenerator]
    18:47:00.447 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [enhanced-sequence] -> [org.hibernate.id.enhanced.SequenceStyleGenerator]
    18:47:00.449 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [enhanced-table] -> [org.hibernate.id.enhanced.TableGenerator]
    18:47:00.493 [main] DEBUG o.h.i.internal.IntegratorServiceImpl - Adding Integrator [org.hibernate.cfg.beanvalidation.BeanValidationIntegrator].
    18:47:00.509 [main] DEBUG o.h.i.internal.IntegratorServiceImpl - Adding Integrator [org.hibernate.secure.spi.JaccIntegrator].
    18:47:00.514 [main] DEBUG o.h.i.internal.IntegratorServiceImpl - Adding Integrator [org.hibernate.cache.internal.CollectionCacheInvalidator].
    18:47:00.565 [main] DEBUG o.h.b.r.s.i.StrategySelectorImpl - Registering named strategy selector [org.hibernate.dialect.Dialect] : [MySQL5] -> [org.hibernate.dialect.MySQL5Dialect] (replacing [org.hibernate.dialect.MySQL5Dialect])
    18:47:00.566 [main] DEBUG o.h.b.r.s.i.StrategySelectorImpl - Registering named strategy selector [org.hibernate.dialect.Dialect] : [MySQL5InnoDB] -> [org.hibernate.dialect.MySQL5InnoDBDialect] (replacing [org.hibernate.dialect.MySQL5InnoDBDialect])
    18:47:00.696 [main] DEBUG o.h.service.spi.ServiceBinding - Overriding existing service binding [org.hibernate.secure.spi.JaccService]
    18:47:00.699 [main] DEBUG org.hibernate.cfg.Configuration - Preparing to build session factory with filters : {}
    18:47:01.780 [main] DEBUG o.h.e.jdbc.internal.JdbcServicesImpl - Database ->
           name : MySQL
        version : 5.6.26
          major : 5
          minor : 6
    18:47:01.780 [main] DEBUG o.h.e.jdbc.internal.JdbcServicesImpl - Driver ->
           name : MySQL Connector Java
        version : mysql-connector-java-5.1.36 ( Revision: 4fc1f969f740409a4e03750316df2c0e429f3dc8 )
          major : 5
          minor : 1
    18:47:01.781 [main] DEBUG o.h.e.jdbc.internal.JdbcServicesImpl - JDBC version : 4.0
    18:47:01.784 [main] DEBUG o.h.e.j.c.i.StandardRefCursorSupport - Unexpected error trying to gauge level of JDBC REF_CURSOR support : null
    18:47:01.896 [main] INFO  org.hibernate.dialect.Dialect - HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
    18:47:02.001 [main] DEBUG org.hibernate.cfg.Configuration - Processing hbm.xml files
    18:47:02.003 [main] DEBUG org.hibernate.cfg.Configuration - Process annotated classes
    18:47:02.014 [main] DEBUG org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: casa.entites.Produit
    18:47:02.062 [main] DEBUG org.hibernate.cfg.Ejb3Column - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
    18:47:02.064 [main] DEBUG org.hibernate.cfg.AnnotationBinder - No value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
    18:47:02.076 [main] DEBUG o.h.cfg.annotations.EntityBinder - Import with entity name Produit
    18:47:02.084 [main] DEBUG o.h.cfg.annotations.EntityBinder - Bind entity casa.entites.Produit on table Produit
    18:47:02.143 [main] DEBUG org.hibernate.cfg.Ejb3Column - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Produit), mappingColumn=id, insertable=true, updatable=true, unique=false}
    18:47:02.150 [main] DEBUG o.h.cfg.annotations.PropertyBinder - MetadataSourceProcessor property id with lazy=false
    18:47:02.153 [main] DEBUG o.h.cfg.AbstractPropertyHolder - Attempting to locate auto-apply AttributeConverter for property [casa.entites.Produit:id]
    18:47:02.158 [main] DEBUG o.h.c.annotations.SimpleValueBinder - building SimpleValue for id
    18:47:02.161 [main] DEBUG o.h.cfg.annotations.PropertyBinder - Building property id
    18:47:02.171 [main] DEBUG org.hibernate.cfg.Ejb3Column - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Produit), mappingColumn=description, insertable=true, updatable=true, unique=false}
    18:47:02.172 [main] DEBUG o.h.cfg.annotations.PropertyBinder - MetadataSourceProcessor property desc with lazy=false
    18:47:02.172 [main] DEBUG o.h.cfg.AbstractPropertyHolder - Attempting to locate auto-apply AttributeConverter for property [casa.entites.Produit:desc]
    18:47:02.172 [main] DEBUG o.h.c.annotations.SimpleValueBinder - building SimpleValue for desc
    18:47:02.173 [main] DEBUG o.h.cfg.annotations.PropertyBinder - Building property desc
    18:47:02.177 [main] DEBUG org.hibernate.cfg.Ejb3Column - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Produit), mappingColumn=ref, insertable=true, updatable=true, unique=false}
    18:47:02.178 [main] DEBUG o.h.cfg.annotations.PropertyBinder - MetadataSourceProcessor property ref with lazy=false
    18:47:02.178 [main] DEBUG o.h.cfg.AbstractPropertyHolder - Attempting to locate auto-apply AttributeConverter for property [casa.entites.Produit:ref]
    18:47:02.178 [main] DEBUG o.h.c.annotations.SimpleValueBinder - building SimpleValue for ref
    18:47:02.178 [main] DEBUG o.h.cfg.annotations.PropertyBinder - Building property ref
    18:47:02.182 [main] DEBUG o.h.c.annotations.SimpleValueBinder - Starting fillSimpleValue for id
    18:47:02.183 [main] DEBUG o.h.c.annotations.SimpleValueBinder - Starting fillSimpleValue for desc
    18:47:02.183 [main] DEBUG o.h.c.annotations.SimpleValueBinder - Starting fillSimpleValue for ref
    18:47:02.184 [main] DEBUG org.hibernate.cfg.Configuration - Processing fk mappings (*ToOne and JoinedSubclass)
    18:47:02.186 [main] DEBUG org.hibernate.cfg.Configuration - Processing extends queue
    18:47:02.187 [main] DEBUG org.hibernate.cfg.Configuration - Processing extends queue
    18:47:02.187 [main] DEBUG org.hibernate.cfg.Configuration - Processing collection mappings
    18:47:02.187 [main] DEBUG org.hibernate.cfg.Configuration - Processing native query and ResultSetMapping mappings
    18:47:02.187 [main] DEBUG org.hibernate.cfg.Configuration - Processing association property references
    18:47:02.187 [main] DEBUG org.hibernate.cfg.Configuration - Creating tables' unique integer identifiers
    18:47:02.187 [main] DEBUG org.hibernate.cfg.Configuration - Processing foreign key constraints
    18:47:02.196 [main] DEBUG o.h.e.t.j.p.i.JtaPlatformInitiator - No JtaPlatform was specified, checking resolver
    18:47:02.198 [main] DEBUG o.h.e.t.j.p.i.JtaPlatformResolverInitiator - No JtaPlatformResolver was specified, using default [org.hibernate.engine.transaction.jta.platform.internal.StandardJtaPlatformResolver]
    18:47:02.205 [main] DEBUG o.h.e.t.j.p.i.StandardJtaPlatformResolver - Could not resolve JtaPlatform, using default [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
    18:47:02.230 [main] DEBUG org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
    18:47:02.231 [main] DEBUG org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
    18:47:02.232 [main] DEBUG org.hibernate.cfg.SettingsFactory - JDBC batch size: 15
    18:47:02.234 [main] DEBUG org.hibernate.cfg.SettingsFactory - JDBC batch updates for versioned data: disabled
    18:47:02.234 [main] DEBUG org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled
    18:47:02.235 [main] DEBUG org.hibernate.cfg.SettingsFactory - Wrap result sets: disabled
    18:47:02.235 [main] DEBUG org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled
    18:47:02.235 [main] DEBUG org.hibernate.cfg.SettingsFactory - multi-tenancy strategy : NONE
    18:47:02.235 [main] DEBUG org.hibernate.cfg.SettingsFactory - Connection release mode: auto
    18:47:02.237 [main] INFO  o.h.e.t.i.TransactionFactoryInitiator - HHH000399: Using default transaction strategy (direct JDBC transactions)
    18:47:02.258 [main] DEBUG org.hibernate.cfg.SettingsFactory - Using BatchFetchStyle : LEGACY
    18:47:02.259 [main] DEBUG org.hibernate.cfg.SettingsFactory - Maximum outer join fetch depth: 2
    18:47:02.259 [main] DEBUG org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
    18:47:02.259 [main] DEBUG org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
    18:47:02.259 [main] DEBUG org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
    18:47:02.260 [main] DEBUG org.hibernate.cfg.SettingsFactory - Order SQL inserts for batching: disabled
    18:47:02.260 [main] DEBUG org.hibernate.cfg.SettingsFactory - Default null ordering: none
    18:47:02.261 [main] DEBUG org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory
    18:47:02.265 [main] INFO  o.h.h.i.a.ASTQueryTranslatorFactory - HHH000397: Using ASTQueryTranslatorFactory
    18:47:02.268 [main] DEBUG org.hibernate.cfg.SettingsFactory - Query language substitutions: {}
    18:47:02.276 [main] DEBUG org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: disabled
    18:47:02.316 [main] DEBUG org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
    18:47:02.317 [main] DEBUG org.hibernate.cfg.SettingsFactory - Query cache: disabled
    18:47:02.322 [main] DEBUG o.h.c.i.RegionFactoryInitiator - Cache region factory : org.hibernate.cache.internal.NoCachingRegionFactory
    18:47:02.350 [main] DEBUG org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled
    18:47:02.350 [main] DEBUG org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled
    18:47:02.350 [main] DEBUG org.hibernate.cfg.SettingsFactory - Second-level cache direct-reference entries: disabled
    18:47:02.351 [main] DEBUG org.hibernate.cfg.SettingsFactory - Automatic eviction of collection cache: disabled
    18:47:02.352 [main] DEBUG org.hibernate.cfg.SettingsFactory - Statistics: disabled
    18:47:02.352 [main] DEBUG org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
    18:47:02.353 [main] DEBUG org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo
    18:47:02.353 [main] DEBUG org.hibernate.cfg.SettingsFactory - Named query checking : enabled
    18:47:02.353 [main] DEBUG org.hibernate.cfg.SettingsFactory - Check Nullability in Core (should be disabled when Bean Validation is on): enabled
    18:47:02.353 [main] DEBUG org.hibernate.cfg.SettingsFactory - Allow initialization of lazy state outside session : : disabled
    18:47:02.353 [main] DEBUG org.hibernate.cfg.SettingsFactory - JTA Track by Thread: enabled
    18:47:02.437 [main] DEBUG o.h.internal.SessionFactoryImpl - Building session factory
    18:47:02.471 [main] DEBUG o.h.internal.SessionFactoryImpl - Session factory constructed with filter configurations : {}
    18:47:02.472 [main] DEBUG o.h.internal.SessionFactoryImpl - Instantiating session factory with properties: {java.runtime.name=Java(TM) SE Runtime Environment, sun.boot.library.path=C:\Program Files\Java\jre1.8.0_60\bin, java.vm.version=25.60-b23, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.script=, user.country=FR, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\worckspaces_mars_1\GESTION01, java.runtime.version=1.8.0_60-b27, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, hibernate.current_session_context_class=thread, java.endorsed.dirs=C:\Program Files\Java\jre1.8.0_60\lib\endorsed, os.arch=amd64, java.io.tmpdir=C:\Users\admin\AppData\Local\Temp\, line.separator=
    , java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 10, sun.jnu.encoding=Cp1252, java.library.path=C:\Program Files\Java\jre1.8.0_60\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.8.0_60/bin/server;C:/Program Files/Java/jre1.8.0_60/bin;C:/Program Files/Java/jre1.8.0_60/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\xampp\php;C:\xampp\htdocs;C:\ProgramData\ComposerSetup\bin;C:\Program Files\Java\jdk1.8.0_60\bin;C:\Program Files (x86)\apache-ant\bin;C:\Users\admin\Desktop\junit4.4;C:\Program Files\Git\bin;C:\xampp\mysql\bin;c:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;c:\Program Files\Microsoft SQL Server\110\Tools\Binn\;c:\Program Files\Microsoft SQL Server\110\DTS\Binn\;c:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;c:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\TortoiseGit\bin;C:\Program Files\nodejs\;C:\Program Files\nodejs;C:\Users\admin\AppData\Roaming\npm;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;;C:\Users\admin\Desktop\eclipseMars1;;., hibernate.connection.datasource=org.apache.commons.dbcp.BasicDataSource@6e005dc9, java.specification.name=Java Platform API Specification, java.class.version=52.0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=10.0, user.home=C:\Users\admin, user.timezone=Europe/Paris, java.awt.printerjob=sun.awt.windows.WPrinterJob, java.specification.version=1.8, file.encoding=UTF-8, user.name=admin, java.class.path=C:\worckspaces_mars_1\GESTION01\target\classes;C:\Users\admin\.m2\repository\org\springframework\spring-context\4.0.3.RELEASE\spring-context-4.0.3.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\spring-aop\4.0.3.RELEASE\spring-aop-4.0.3.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\spring-beans\4.0.3.RELEASE\spring-beans-4.0.3.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\spring-core\4.0.3.RELEASE\spring-core-4.0.3.RELEASE.jar;C:\Users\admin\.m2\repository\commons-logging\commons-logging\1.1.3\commons-logging-1.1.3.jar;C:\Users\admin\.m2\repository\org\springframework\spring-expression\4.0.3.RELEASE\spring-expression-4.0.3.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\spring-tx\4.0.3.RELEASE\spring-tx-4.0.3.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\spring-orm\4.0.3.RELEASE\spring-orm-4.0.3.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\spring-jdbc\4.0.3.RELEASE\spring-jdbc-4.0.3.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\security\spring-security-web\3.2.3.RELEASE\spring-security-web-3.2.3.RELEASE.jar;C:\Users\admin\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Users\admin\.m2\repository\org\springframework\security\spring-security-core\3.2.3.RELEASE\spring-security-core-3.2.3.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\spring-web\3.2.8.RELEASE\spring-web-3.2.8.RELEASE.jar;C:\Users\admin\.m2\repository\javax\servlet\javax.servlet-api\3.1.0\javax.servlet-api-3.1.0.jar;C:\Users\admin\.m2\repository\mysql\mysql-connector-java\5.1.36\mysql-connector-java-5.1.36.jar;C:\Users\admin\.m2\repository\org\springframework\security\spring-security-config\3.2.3.RELEASE\spring-security-config-3.2.3.RELEASE.jar;C:\Users\admin\.m2\repository\org\slf4j\slf4j-api\1.7.5\slf4j-api-1.7.5.jar;C:\Users\admin\.m2\repository\ch\qos\logback\logback-classic\1.0.13\logback-classic-1.0.13.jar;C:\Users\admin\.m2\repository\ch\qos\logback\logback-core\1.0.13\logback-core-1.0.13.jar;C:\Users\admin\.m2\repository\org\hibernate\hibernate-entitymanager\4.3.5.Final\hibernate-entitymanager-4.3.5.Final.jar;C:\Users\admin\.m2\repository\org\jboss\logging\jboss-logging\3.1.3.GA\jboss-logging-3.1.3.GA.jar;C:\Users\admin\.m2\repository\org\jboss\logging\jboss-logging-annotations\1.2.0.Beta1\jboss-logging-annotations-1.2.0.Beta1.jar;C:\Users\admin\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;C:\Users\admin\.m2\repository\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar;C:\Users\admin\.m2\repository\org\hibernate\common\hibernate-commons-annotations\4.0.4.Final\hibernate-commons-annotations-4.0.4.Final.jar;C:\Users\admin\.m2\repository\org\hibernate\javax\persistence\hibernate-jpa-2.1-api\1.0.0.Final\hibernate-jpa-2.1-api-1.0.0.Final.jar;C:\Users\admin\.m2\repository\org\jboss\spec\javax\transaction\jboss-transaction-api_1.2_spec\1.0.0.Final\jboss-transaction-api_1.2_spec-1.0.0.Final.jar;C:\Users\admin\.m2\repository\org\javassist\javassist\3.18.1-GA\javassist-3.18.1-GA.jar;C:\Users\admin\.m2\repository\org\hibernate\hibernate-core\4.3.5.Final\hibernate-core-4.3.5.Final.jar;C:\Users\admin\.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;C:\Users\admin\.m2\repository\org\jboss\jandex\1.1.0.Final\jandex-1.1.0.Final.jar;C:\Users\admin\.m2\repository\javax\jcr\jcr\2.0\jcr-2.0.jar;C:\Users\admin\.m2\repository\postgresql\postgresql\9.1-901-1.jdbc4\postgresql-9.1-901-1.jdbc4.jar;C:\Users\admin\.m2\repository\commons-dbcp\commons-dbcp\1.4\commons-dbcp-1.4.jar;C:\Users\admin\.m2\repository\commons-pool\commons-pool\1.5.4\commons-pool-1.5.4.jar, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=false, hibernate.classLoader.application=sun.misc.Launcher$AppClassLoader@4e0e2f2a, java.vm.specification.version=1.8, sun.arch.data.model=64, java.home=C:\Program Files\Java\jre1.8.0_60, sun.java.command=SATIC, hibernate.dialect=org.hibernate.dialect.MySQLDialect, java.specification.vendor=Oracle Corporation, user.language=fr, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.8.0_60, java.ext.dirs=C:\Program Files\Java\jre1.8.0_60\lib\ext;C:\WINDOWS\Sun\Java\lib\ext, sun.boot.class.path=C:\Program Files\Java\jre1.8.0_60\lib\resources.jar;C:\Program Files\Java\jre1.8.0_60\lib\rt.jar;C:\Program Files\Java\jre1.8.0_60\lib\sunrsasign.jar;C:\Program Files\Java\jre1.8.0_60\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_60\lib\jce.jar;C:\Program Files\Java\jre1.8.0_60\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_60\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_60\classes, java.vendor=Oracle Corporation, file.separator=\, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, sun.cpu.endian=little, sun.io.unicode.encoding=UnicodeLittle, sun.desktop=windows, sun.cpu.isalist=amd64}
    18:47:02.525 [main] DEBUG o.h.secure.spi.JaccIntegrator - Skipping JACC integration as it was not enabled
    18:47:02.526 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Setting dialect [org.hibernate.dialect.MySQLDialect]
    18:47:03.203 [main] DEBUG o.h.p.entity.AbstractEntityPersister - Static SQL for entity: casa.entites.Produit
    18:47:03.203 [main] DEBUG o.h.p.entity.AbstractEntityPersister -  Version select: select id from Produit where id =?
    18:47:03.203 [main] DEBUG o.h.p.entity.AbstractEntityPersister -  Snapshot select: select produit_.id, produit_.description as descript2_0_, produit_.ref as ref3_0_ from Produit produit_ where produit_.id=?
    18:47:03.203 [main] DEBUG o.h.p.entity.AbstractEntityPersister -  Insert 0: insert into Produit (description, ref, id) values (?, ?, ?)
    18:47:03.204 [main] DEBUG o.h.p.entity.AbstractEntityPersister -  Update 0: update Produit set description=?, ref=? where id=?
    18:47:03.204 [main] DEBUG o.h.p.entity.AbstractEntityPersister -  Delete 0: delete from Produit where id=?
    18:47:03.204 [main] DEBUG o.h.p.entity.AbstractEntityPersister -  Identity insert: insert into Produit (description, ref) values (?, ?)
    18:47:03.264 [main] DEBUG o.h.l.p.b.i.spaces.QuerySpacesImpl - Adding QuerySpace : uid = <gen:0> -> org.hibernate.loader.plan.build.internal.spaces.EntityQuerySpaceImpl@626c44e7]
    18:47:03.374 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : desc
    18:47:03.376 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : ref
    18:47:03.379 [main] DEBUG o.h.l.p.b.i.FetchStyleLoadPlanBuildingAssociationVisitationStrategy - Building LoadPlan...
    18:47:03.447 [main] DEBUG o.h.l.p.e.i.LoadQueryJoinAndFetchProcessor - processing queryspace <gen:0>
    18:47:03.460 [main] DEBUG o.h.l.p.b.spi.LoadPlanTreePrinter - LoadPlan(entity=casa.entites.Produit)
        - Returns
           - EntityReturnImpl(entity=casa.entites.Produit, querySpaceUid=<gen:0>, path=casa.entites.Produit)
        - QuerySpaces
           - EntityQuerySpaceImpl(uid=<gen:0>, entity=casa.entites.Produit)
              - SQL table alias mapping - produit0_
              - alias suffix - 0_
              - suffixed key columns - {id1_0_0_}
     
    18:47:03.478 [main] DEBUG o.h.loader.entity.plan.EntityLoader - Static select for entity casa.entites.Produit [NONE]: select produit0_.id as id1_0_0_, produit0_.description as descript2_0_0_, produit0_.ref as ref3_0_0_ from Produit produit0_ where produit0_.id=?
    18:47:03.480 [main] DEBUG o.h.l.p.b.i.spaces.QuerySpacesImpl - Adding QuerySpace : uid = <gen:0> -> org.hibernate.loader.plan.build.internal.spaces.EntityQuerySpaceImpl@23bff419]
    18:47:03.480 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : desc
    18:47:03.480 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : ref
    18:47:03.480 [main] DEBUG o.h.l.p.b.i.FetchStyleLoadPlanBuildingAssociationVisitationStrategy - Building LoadPlan...
    18:47:03.481 [main] DEBUG o.h.l.p.e.i.LoadQueryJoinAndFetchProcessor - processing queryspace <gen:0>
    18:47:03.482 [main] DEBUG o.h.l.p.b.spi.LoadPlanTreePrinter - LoadPlan(entity=casa.entites.Produit)
        - Returns
           - EntityReturnImpl(entity=casa.entites.Produit, querySpaceUid=<gen:0>, path=casa.entites.Produit)
        - QuerySpaces
           - EntityQuerySpaceImpl(uid=<gen:0>, entity=casa.entites.Produit)
              - SQL table alias mapping - produit0_
              - alias suffix - 0_
              - suffixed key columns - {id1_0_0_}
     
    18:47:03.483 [main] DEBUG o.h.loader.entity.plan.EntityLoader - Static select for entity casa.entites.Produit [READ]: select produit0_.id as id1_0_0_, produit0_.description as descript2_0_0_, produit0_.ref as ref3_0_0_ from Produit produit0_ where produit0_.id=?
    18:47:03.483 [main] DEBUG o.h.l.p.b.i.spaces.QuerySpacesImpl - Adding QuerySpace : uid = <gen:0> -> org.hibernate.loader.plan.build.internal.spaces.EntityQuerySpaceImpl@44e3a2b2]
    18:47:03.484 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : desc
    18:47:03.484 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : ref
    18:47:03.484 [main] DEBUG o.h.l.p.b.i.FetchStyleLoadPlanBuildingAssociationVisitationStrategy - Building LoadPlan...
    18:47:03.485 [main] DEBUG o.h.l.p.e.i.LoadQueryJoinAndFetchProcessor - processing queryspace <gen:0>
    18:47:03.487 [main] DEBUG o.h.l.p.b.spi.LoadPlanTreePrinter - LoadPlan(entity=casa.entites.Produit)
        - Returns
           - EntityReturnImpl(entity=casa.entites.Produit, querySpaceUid=<gen:0>, path=casa.entites.Produit)
        - QuerySpaces
           - EntityQuerySpaceImpl(uid=<gen:0>, entity=casa.entites.Produit)
              - SQL table alias mapping - produit0_
              - alias suffix - 0_
              - suffixed key columns - {id1_0_0_}
     
    18:47:03.487 [main] DEBUG o.h.loader.entity.plan.EntityLoader - Static select for entity casa.entites.Produit [UPGRADE]: select produit0_.id as id1_0_0_, produit0_.description as descript2_0_0_, produit0_.ref as ref3_0_0_ from Produit produit0_ where produit0_.id=? for update
    18:47:03.488 [main] DEBUG o.h.l.p.b.i.spaces.QuerySpacesImpl - Adding QuerySpace : uid = <gen:0> -> org.hibernate.loader.plan.build.internal.spaces.EntityQuerySpaceImpl@4c550889]
    18:47:03.488 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : desc
    18:47:03.489 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : ref
    18:47:03.489 [main] DEBUG o.h.l.p.b.i.FetchStyleLoadPlanBuildingAssociationVisitationStrategy - Building LoadPlan...
    18:47:03.489 [main] DEBUG o.h.l.p.e.i.LoadQueryJoinAndFetchProcessor - processing queryspace <gen:0>
    18:47:03.493 [main] DEBUG o.h.l.p.b.spi.LoadPlanTreePrinter - LoadPlan(entity=casa.entites.Produit)
        - Returns
           - EntityReturnImpl(entity=casa.entites.Produit, querySpaceUid=<gen:0>, path=casa.entites.Produit)
        - QuerySpaces
           - EntityQuerySpaceImpl(uid=<gen:0>, entity=casa.entites.Produit)
              - SQL table alias mapping - produit0_
              - alias suffix - 0_
              - suffixed key columns - {id1_0_0_}
     
    18:47:03.494 [main] DEBUG o.h.loader.entity.plan.EntityLoader - Static select for entity casa.entites.Produit [UPGRADE_NOWAIT]: select produit0_.id as id1_0_0_, produit0_.description as descript2_0_0_, produit0_.ref as ref3_0_0_ from Produit produit0_ where produit0_.id=? for update
    18:47:03.495 [main] DEBUG o.h.l.p.b.i.spaces.QuerySpacesImpl - Adding QuerySpace : uid = <gen:0> -> org.hibernate.loader.plan.build.internal.spaces.EntityQuerySpaceImpl@44040454]
    18:47:03.495 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : desc
    18:47:03.496 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : ref
    18:47:03.497 [main] DEBUG o.h.l.p.b.i.FetchStyleLoadPlanBuildingAssociationVisitationStrategy - Building LoadPlan...
    18:47:03.497 [main] DEBUG o.h.l.p.e.i.LoadQueryJoinAndFetchProcessor - processing queryspace <gen:0>
    18:47:03.499 [main] DEBUG o.h.l.p.b.spi.LoadPlanTreePrinter - LoadPlan(entity=casa.entites.Produit)
        - Returns
           - EntityReturnImpl(entity=casa.entites.Produit, querySpaceUid=<gen:0>, path=casa.entites.Produit)
        - QuerySpaces
           - EntityQuerySpaceImpl(uid=<gen:0>, entity=casa.entites.Produit)
              - SQL table alias mapping - produit0_
              - alias suffix - 0_
              - suffixed key columns - {id1_0_0_}
     
    18:47:03.499 [main] DEBUG o.h.loader.entity.plan.EntityLoader - Static select for entity casa.entites.Produit [UPGRADE_SKIPLOCKED]: select produit0_.id as id1_0_0_, produit0_.description as descript2_0_0_, produit0_.ref as ref3_0_0_ from Produit produit0_ where produit0_.id=? for update
    18:47:03.500 [main] DEBUG o.h.l.p.b.i.spaces.QuerySpacesImpl - Adding QuerySpace : uid = <gen:0> -> org.hibernate.loader.plan.build.internal.spaces.EntityQuerySpaceImpl@18bc345]
    18:47:03.500 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : desc
    18:47:03.500 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : ref
    18:47:03.500 [main] DEBUG o.h.l.p.b.i.FetchStyleLoadPlanBuildingAssociationVisitationStrategy - Building LoadPlan...
    18:47:03.501 [main] DEBUG o.h.l.p.e.i.LoadQueryJoinAndFetchProcessor - processing queryspace <gen:0>
    18:47:03.502 [main] DEBUG o.h.l.p.b.spi.LoadPlanTreePrinter - LoadPlan(entity=casa.entites.Produit)
        - Returns
           - EntityReturnImpl(entity=casa.entites.Produit, querySpaceUid=<gen:0>, path=casa.entites.Produit)
        - QuerySpaces
           - EntityQuerySpaceImpl(uid=<gen:0>, entity=casa.entites.Produit)
              - SQL table alias mapping - produit0_
              - alias suffix - 0_
              - suffixed key columns - {id1_0_0_}
     
    18:47:03.502 [main] DEBUG o.h.loader.entity.plan.EntityLoader - Static select for entity casa.entites.Produit [FORCE]: select produit0_.id as id1_0_0_, produit0_.description as descript2_0_0_, produit0_.ref as ref3_0_0_ from Produit produit0_ where produit0_.id=? for update
    18:47:03.502 [main] DEBUG o.h.l.p.b.i.spaces.QuerySpacesImpl - Adding QuerySpace : uid = <gen:0> -> org.hibernate.loader.plan.build.internal.spaces.EntityQuerySpaceImpl@26bab2f1]
    18:47:03.503 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : desc
    18:47:03.506 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : ref
    18:47:03.512 [main] DEBUG o.h.l.p.b.i.FetchStyleLoadPlanBuildingAssociationVisitationStrategy - Building LoadPlan...
    18:47:03.512 [main] DEBUG o.h.l.p.e.i.LoadQueryJoinAndFetchProcessor - processing queryspace <gen:0>
    18:47:03.513 [main] DEBUG o.h.l.p.b.spi.LoadPlanTreePrinter - LoadPlan(entity=casa.entites.Produit)
        - Returns
           - EntityReturnImpl(entity=casa.entites.Produit, querySpaceUid=<gen:0>, path=casa.entites.Produit)
        - QuerySpaces
           - EntityQuerySpaceImpl(uid=<gen:0>, entity=casa.entites.Produit)
              - SQL table alias mapping - produit0_
              - alias suffix - 0_
              - suffixed key columns - {id1_0_0_}
     
    18:47:03.513 [main] DEBUG o.h.loader.entity.plan.EntityLoader - Static select for entity casa.entites.Produit [PESSIMISTIC_READ]: select produit0_.id as id1_0_0_, produit0_.description as descript2_0_0_, produit0_.ref as ref3_0_0_ from Produit produit0_ where produit0_.id=? lock in share mode
    18:47:03.513 [main] DEBUG o.h.l.p.b.i.spaces.QuerySpacesImpl - Adding QuerySpace : uid = <gen:0> -> org.hibernate.loader.plan.build.internal.spaces.EntityQuerySpaceImpl@68ead359]
    18:47:03.514 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : desc
    18:47:03.514 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : ref
    18:47:03.514 [main] DEBUG o.h.l.p.b.i.FetchStyleLoadPlanBuildingAssociationVisitationStrategy - Building LoadPlan...
    18:47:03.514 [main] DEBUG o.h.l.p.e.i.LoadQueryJoinAndFetchProcessor - processing queryspace <gen:0>
    18:47:03.515 [main] DEBUG o.h.l.p.b.spi.LoadPlanTreePrinter - LoadPlan(entity=casa.entites.Produit)
        - Returns
           - EntityReturnImpl(entity=casa.entites.Produit, querySpaceUid=<gen:0>, path=casa.entites.Produit)
        - QuerySpaces
           - EntityQuerySpaceImpl(uid=<gen:0>, entity=casa.entites.Produit)
              - SQL table alias mapping - produit0_
              - alias suffix - 0_
              - suffixed key columns - {id1_0_0_}
     
    18:47:03.515 [main] DEBUG o.h.loader.entity.plan.EntityLoader - Static select for entity casa.entites.Produit [PESSIMISTIC_WRITE]: select produit0_.id as id1_0_0_, produit0_.description as descript2_0_0_, produit0_.ref as ref3_0_0_ from Produit produit0_ where produit0_.id=? for update
    18:47:03.515 [main] DEBUG o.h.l.p.b.i.spaces.QuerySpacesImpl - Adding QuerySpace : uid = <gen:0> -> org.hibernate.loader.plan.build.internal.spaces.EntityQuerySpaceImpl@180da663]
    18:47:03.515 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : desc
    18:47:03.515 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : ref
    18:47:03.515 [main] DEBUG o.h.l.p.b.i.FetchStyleLoadPlanBuildingAssociationVisitationStrategy - Building LoadPlan...
    18:47:03.516 [main] DEBUG o.h.l.p.e.i.LoadQueryJoinAndFetchProcessor - processing queryspace <gen:0>
    18:47:03.516 [main] DEBUG o.h.l.p.b.spi.LoadPlanTreePrinter - LoadPlan(entity=casa.entites.Produit)
        - Returns
           - EntityReturnImpl(entity=casa.entites.Produit, querySpaceUid=<gen:0>, path=casa.entites.Produit)
        - QuerySpaces
           - EntityQuerySpaceImpl(uid=<gen:0>, entity=casa.entites.Produit)
              - SQL table alias mapping - produit0_
              - alias suffix - 0_
              - suffixed key columns - {id1_0_0_}
     
    18:47:03.517 [main] DEBUG o.h.loader.entity.plan.EntityLoader - Static select for entity casa.entites.Produit [PESSIMISTIC_FORCE_INCREMENT]: select produit0_.id as id1_0_0_, produit0_.description as descript2_0_0_, produit0_.ref as ref3_0_0_ from Produit produit0_ where produit0_.id=? for update
    18:47:03.517 [main] DEBUG o.h.l.p.b.i.spaces.QuerySpacesImpl - Adding QuerySpace : uid = <gen:0> -> org.hibernate.loader.plan.build.internal.spaces.EntityQuerySpaceImpl@340da44c]
    18:47:03.517 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : desc
    18:47:03.518 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : ref
    18:47:03.518 [main] DEBUG o.h.l.p.b.i.FetchStyleLoadPlanBuildingAssociationVisitationStrategy - Building LoadPlan...
    18:47:03.519 [main] DEBUG o.h.l.p.e.i.LoadQueryJoinAndFetchProcessor - processing queryspace <gen:0>
    18:47:03.519 [main] DEBUG o.h.l.p.b.spi.LoadPlanTreePrinter - LoadPlan(entity=casa.entites.Produit)
        - Returns
           - EntityReturnImpl(entity=casa.entites.Produit, querySpaceUid=<gen:0>, path=casa.entites.Produit)
        - QuerySpaces
           - EntityQuerySpaceImpl(uid=<gen:0>, entity=casa.entites.Produit)
              - SQL table alias mapping - produit0_
              - alias suffix - 0_
              - suffixed key columns - {id1_0_0_}
     
    18:47:03.519 [main] DEBUG o.h.loader.entity.plan.EntityLoader - Static select for entity casa.entites.Produit [OPTIMISTIC]: select produit0_.id as id1_0_0_, produit0_.description as descript2_0_0_, produit0_.ref as ref3_0_0_ from Produit produit0_ where produit0_.id=?
    18:47:03.520 [main] DEBUG o.h.l.p.b.i.spaces.QuerySpacesImpl - Adding QuerySpace : uid = <gen:0> -> org.hibernate.loader.plan.build.internal.spaces.EntityQuerySpaceImpl@37052337]
    18:47:03.520 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : desc
    18:47:03.520 [main] DEBUG o.h.p.w.spi.MetamodelGraphWalker - Visiting attribute path : ref
    18:47:03.520 [main] DEBUG o.h.l.p.b.i.FetchStyleLoadPlanBuildingAssociationVisitationStrategy - Building LoadPlan...
    18:47:03.521 [main] DEBUG o.h.l.p.e.i.LoadQueryJoinAndFetchProcessor - processing queryspace <gen:0>
    18:47:03.521 [main] DEBUG o.h.l.p.b.spi.LoadPlanTreePrinter - LoadPlan(entity=casa.entites.Produit)
        - Returns
           - EntityReturnImpl(entity=casa.entites.Produit, querySpaceUid=<gen:0>, path=casa.entites.Produit)
        - QuerySpaces
           - EntityQuerySpaceImpl(uid=<gen:0>, entity=casa.entites.Produit)
              - SQL table alias mapping - produit0_
              - alias suffix - 0_
              - suffixed key columns - {id1_0_0_}
     
    18:47:03.521 [main] DEBUG o.h.loader.entity.plan.EntityLoader - Static select for entity casa.entites.Produit [OPTIMISTIC_FORCE_INCREMENT]: select produit0_.id as id1_0_0_, produit0_.description as descript2_0_0_, produit0_.ref as ref3_0_0_ from Produit produit0_ where produit0_.id=?
    18:47:03.587 [main] DEBUG org.hibernate.loader.Loader - Static select for action ACTION_MERGE on entity casa.entites.Produit: select produit0_.id as id1_0_0_, produit0_.description as descript2_0_0_, produit0_.ref as ref3_0_0_ from Produit produit0_ where produit0_.id=?
    18:47:03.587 [main] DEBUG org.hibernate.loader.Loader - Static select for action ACTION_REFRESH on entity casa.entites.Produit: select produit0_.id as id1_0_0_, produit0_.description as descript2_0_0_, produit0_.ref as ref3_0_0_ from Produit produit0_ where produit0_.id=?
    18:47:04.234 [main] DEBUG o.h.internal.SessionFactoryRegistry - Initializing SessionFactoryRegistry : org.hibernate.internal.SessionFactoryRegistry@2e554a3b
    18:47:04.235 [main] DEBUG o.h.internal.SessionFactoryRegistry - Registering SessionFactory: 1baf1bbd-5697-4e48-9685-28d7ce254655 (<unnamed>)
    18:47:04.235 [main] DEBUG o.h.internal.SessionFactoryRegistry - Not binding SessionFactory to JNDI, no JNDI name configured
    18:47:04.235 [main] DEBUG o.h.internal.SessionFactoryImpl - Instantiated session factory
    18:47:04.247 [main] DEBUG o.h.internal.NamedQueryRepository - Checking 0 named HQL queries
    18:47:04.247 [main] DEBUG o.h.internal.NamedQueryRepository - Checking 0 named SQL queries
    18:47:04.262 [main] DEBUG o.h.s.internal.StatisticsInitiator - Statistics initialized [enabled=false]
    Exception in thread "main" org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'IProduitMetier' is defined
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:641)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1159)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:282)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
    	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:973)
    	at SATIC.main(SATIC.java:14)

  6. #6
    Rédacteur/Modérateur
    Avatar de andry.aime
    Homme Profil pro
    Inscrit en
    Septembre 2007
    Messages
    8 391
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Ile Maurice

    Informations forums :
    Inscription : Septembre 2007
    Messages : 8 391
    Points : 15 059
    Points
    15 059
    Par défaut
    Bonjour,

    C'est parce que dans la classe produitMetierImpl, c'est le DAO que tu dois injecter mais pas l'instance d'un IProduitMetier elle même. Et il faut aussi modifier les méthodes appelées par rapport à ceux du DAO.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    public class produitMetierImpl implements IProduitMetier{
     
    	@Autowired
    	private ProduitDao prods;
     
    	@Override
    	public void addProduit(Produit produit) {
    		prods.AjouterProduit(produit);
    	}
    ...
    PS: Par convention, les noms de classe/interface doivent commencer par un majuscule et les noms de méthode par un minuscule.

    A+.

  7. #7
    Futur Membre du Club
    Homme Profil pro
    Développeur Java
    Inscrit en
    Juin 2016
    Messages
    17
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 32
    Localisation : France, Val d'Oise (Île de France)

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2016
    Messages : 17
    Points : 6
    Points
    6
    Par défaut java hibernate spring
    Merci d'avoir répondu a mon problème :
    J'ai fais exactement ce que tu ma conseillé mais ça marchais donc j'ai rajouté ca :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:context="http://www.springframework.org/schema/context"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
    http://www.springframework.org/schema/context
    http://www.springframework.org/schema/context/spring-context-2.5.xsd">
     
    	<!-- Database Configuration -->
    	<import resource="DataSource.xml"/>
    	<import resource="Hibernate.xml"/>
     
    	<bean id="ProduitDao" class="casa.dao.imp.ProduitdaoImp" />
     
    	<!-- Auto scan the components -->
    	<context:component-scan
    		base-package="*" />
     
    </beans

    j'obtient cette erreur :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    janv. 03, 2017 5:53:58 PM org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh
    INFOS: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@506c589e: startup date [Tue Jan 03 17:53:58 CET 2017]; root of context hierarchy
    janv. 03, 2017 5:53:58 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    INFOS: Loading XML bean definitions from class path resource [BeanLocations.xml]
    janv. 03, 2017 5:53:58 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    INFOS: Loading XML bean definitions from class path resource [DataSource.xml]
    janv. 03, 2017 5:53:58 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    INFOS: Loading XML bean definitions from class path resource [Hibernate.xml]
    janv. 03, 2017 5:53:58 PM org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
    INFOS: Overriding bean definition for bean 'dataSource': replacing [Generic bean: class [org.springframework.jdbc.datasource.DriverManagerDataSource]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [DataSource.xml]] with [Generic bean: class [org.apache.commons.dbcp.BasicDataSource]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=close; defined in class path resource [Hibernate.xml]]
    janv. 03, 2017 5:53:59 PM org.springframework.beans.factory.config.PropertyPlaceholderConfigurer loadProperties
    INFOS: Loading properties file from class path resource [database.properties]
    Exception in thread "main" java.lang.NoClassDefFoundError: Lorg/hibernate/cache/spi/RegionFactory;
    	at java.lang.Class.getDeclaredFields0(Native Method)
    	at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
    	at java.lang.Class.getDeclaredFields(Class.java:1916)
    	at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:392)
    	at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(PersistenceAnnotationBeanPostProcessor.java:332)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:908)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:684)
    	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
    	at SATIC.main(SATIC.java:13)
    Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.spi.RegionFactory
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    	... 18 more

  8. #8
    Futur Membre du Club
    Homme Profil pro
    Développeur Java
    Inscrit en
    Juin 2016
    Messages
    17
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 32
    Localisation : France, Val d'Oise (Île de France)

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2016
    Messages : 17
    Points : 6
    Points
    6
    Par défaut java hibernate spring
    d’après plusieurs recherche j'ai remarqué que c'est un problème de version de hibernat j'ai fais tout ce que j' ai trouvé sur internet mais ça marchais pas

    voila mon fichier pom.xml

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <groupId>GestionUtilisateur</groupId>
      <artifactId>GestionUtilisateur</artifactId>
      <version>0.0.1-SNAPSHOT</version>
      <packaging>war</packaging>
      <build>
        <sourceDirectory>src</sourceDirectory>
        <plugins>
          <plugin>
            <artifactId>maven-war-plugin</artifactId>
            <version>2.4</version>
            <configuration>
              <warSourceDirectory>WebContent</warSourceDirectory>
              <failOnMissingWebXml>false</failOnMissingWebXml>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.1</version>
            <configuration>
              <source>1.8</source>
              <target>1.8</target>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <properties>
    	<!-- Generic properties -->
    	<java.version>1.6</java.version>
    	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    	<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
     
    	<!-- Spring -->
    	<spring-framework.version>4.0.3.RELEASE</spring-framework.version>
    	<spring.security.version>3.2.3.RELEASE</spring.security.version>
    	<!-- Hibernate / JPA -->
    	<hibernate.version>3.6.0.Final</hibernate.version>
    <!--  	<hibernate.version>3.6.9.Final</hibernate.version> -->
     
    	<!-- Logging -->
    	<logback.version>1.0.13</logback.version>
    	<slf4j.version>1.7.5</slf4j.version>
    	<jackrabbit.version>2.9.0</jackrabbit.version>
     
    	</properties>
    	<dependencies>
    		<dependency>
    			<groupId>junit</groupId>
    			<artifactId>junit</artifactId>
    			<version>3.8.1</version>
    			<scope>test</scope>
    		</dependency>
    		<!-- Spring and Transactions -->
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-context</artifactId>
    			<version>${spring-framework.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-tx</artifactId>
    			<version>${spring-framework.version}</version>
    		</dependency>
     
    		<!-- Spring ORM support -->
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-orm</artifactId>
    			<version>${spring-framework.version}</version>
    		</dependency>
    		<!-- Spring Security -->
    		<dependency>
    			<groupId>org.springframework.security</groupId>
    			<artifactId>spring-security-web</artifactId>
    			<version>${spring.security.version}</version>
    		</dependency>
     
    		<dependency>
    		    <groupId>javax.servlet</groupId>
    		    <artifactId>javax.servlet-api</artifactId>
    		    <version>3.1.0</version>
    		</dependency>
     
    		<dependency>
    		    <groupId>mysql</groupId>
    		    <artifactId>mysql-connector-java</artifactId>
    		    <version>5.1.36</version>
    		</dependency>
     
    		<dependency>
    			<groupId>org.springframework.security</groupId>
    			<artifactId>spring-security-config</artifactId>
    			<version>${spring.security.version}</version>
    		</dependency>
    		<!-- Logging with SLF4J & LogBack -->
    		<dependency>
    			<groupId>org.slf4j</groupId>
    			<artifactId>slf4j-api</artifactId>
    			<version>${slf4j.version}</version>
    			<scope>compile</scope>
    		</dependency>
    		<dependency>
    			<groupId>ch.qos.logback</groupId>
    			<artifactId>logback-classic</artifactId>
    			<version>${logback.version}</version>
    			<scope>runtime</scope>
    		</dependency>
     
    		<!-- Hibernate -->
    		<dependency>
    			<groupId>org.hibernate</groupId>
    			<artifactId>hibernate-entitymanager</artifactId>
    			<version>${hibernate.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.hibernate</groupId>
    			<artifactId>hibernate-core</artifactId>
    			<version>3.6.0.Final</version>
    		</dependency>
    		<!-- jcr -->
    		<dependency>
    			<groupId>javax.jcr</groupId>
    			<artifactId>jcr</artifactId>
    			<version>2.0</version>
    		</dependency>
     
    		<dependency>
    		    <groupId>javax.servlet</groupId>
    		    <artifactId>javax.servlet-api</artifactId>
    		    <version>3.1.0</version>
    		</dependency>
     
    		<dependency>
    			<groupId>postgresql</groupId>
    			<artifactId>postgresql</artifactId>
    			<version>9.1-901-1.jdbc4</version>
    		</dependency>
    		<dependency>
    			<groupId>commons-dbcp</groupId>
    			<artifactId>commons-dbcp</artifactId>
    			<version>1.4</version>
    		</dependency>
    	</dependencies>
     
    </project>

  9. #9
    Rédacteur/Modérateur
    Avatar de andry.aime
    Homme Profil pro
    Inscrit en
    Septembre 2007
    Messages
    8 391
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Ile Maurice

    Informations forums :
    Inscription : Septembre 2007
    Messages : 8 391
    Points : 15 059
    Points
    15 059
    Par défaut
    Parce que la classe RegionFactory est dans le package org.hibernate.cache.spi depuis la version 4.0.0, avant c'était dans org.hibernate.cache
    Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    	<hibernate.version>4.0.0.Final</hibernate.version>
    ...
    <dependency>
    			<groupId>org.hibernate</groupId>
    			<artifactId>hibernate-entitymanager</artifactId>
    			<version>${hibernate.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.hibernate</groupId>
    			<artifactId>hibernate-core</artifactId>
    			<version>${hibernate.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.hibernate</groupId>
    			<artifactId>hibernate-ehcache</artifactId>
    			<version>${hibernate.version}</version>
    		</dependency>

    Et puis, pourquoi tu démarres ton projet avec des vieilles versions de spring et hibernate

    A+.

  10. #10
    Futur Membre du Club
    Homme Profil pro
    Développeur Java
    Inscrit en
    Juin 2016
    Messages
    17
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 32
    Localisation : France, Val d'Oise (Île de France)

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2016
    Messages : 17
    Points : 6
    Points
    6
    Par défaut java hibernate spring
    Nom : Capture.PNG
Affichages : 1106
Taille : 58,0 Ko

    et voila j'ai bien modifié la version et j'ai toujours le même problème

    et voila mon fichier pom.xml

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <groupId>GestionUtilisateur</groupId>
      <artifactId>GestionUtilisateur</artifactId>
      <version>0.0.1-SNAPSHOT</version>
      <packaging>war</packaging>
      <build>
        <sourceDirectory>src</sourceDirectory>
        <plugins>
          <plugin>
            <artifactId>maven-war-plugin</artifactId>
            <version>2.4</version>
            <configuration>
              <warSourceDirectory>WebContent</warSourceDirectory>
              <failOnMissingWebXml>false</failOnMissingWebXml>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.1</version>
            <configuration>
              <source>1.8</source>
              <target>1.8</target>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <properties>
    	<!-- Generic properties -->
    	<java.version>1.6</java.version>
    	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    	<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
     
    	<!-- Spring -->
    	<spring-framework.version>4.0.3.RELEASE</spring-framework.version>
    	<spring.security.version>3.2.3.RELEASE</spring.security.version>
    	<!-- Hibernate / JPA -->
    	<hibernate.version>4.0.0.Final</hibernate.version>
    <!--  	<hibernate.version>3.6.9.Final</hibernate.version> -->
     
    	<!-- Logging -->
    	<logback.version>1.0.13</logback.version>
    	<slf4j.version>1.7.5</slf4j.version>
    	<jackrabbit.version>2.9.0</jackrabbit.version>
     
    	</properties>
    	<dependencies>
    		<dependency>
    			<groupId>junit</groupId>
    			<artifactId>junit</artifactId>
    			<version>3.8.1</version>
    			<scope>test</scope>
    		</dependency>
    		<!-- Spring and Transactions -->
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-context</artifactId>
    			<version>${spring-framework.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-tx</artifactId>
    			<version>${spring-framework.version}</version>
    		</dependency>
     
    		<!-- Spring ORM support -->
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-orm</artifactId>
    			<version>${spring-framework.version}</version>
    		</dependency>
    		<!-- Spring Security -->
    		<dependency>
    			<groupId>org.springframework.security</groupId>
    			<artifactId>spring-security-web</artifactId>
    			<version>${spring.security.version}</version>
    		</dependency>
     
    		<dependency>
    		    <groupId>javax.servlet</groupId>
    		    <artifactId>javax.servlet-api</artifactId>
    		    <version>3.1.0</version>
    		</dependency>
     
    		<dependency>
    		    <groupId>mysql</groupId>
    		    <artifactId>mysql-connector-java</artifactId>
    		    <version>5.1.36</version>
    		</dependency>
     
    		<dependency>
    			<groupId>org.springframework.security</groupId>
    			<artifactId>spring-security-config</artifactId>
    			<version>${spring.security.version}</version>
    		</dependency>
    		<!-- Logging with SLF4J & LogBack -->
    		<dependency>
    			<groupId>org.slf4j</groupId>
    			<artifactId>slf4j-api</artifactId>
    			<version>${slf4j.version}</version>
    			<scope>compile</scope>
    		</dependency>
    		<dependency>
    			<groupId>ch.qos.logback</groupId>
    			<artifactId>logback-classic</artifactId>
    			<version>${logback.version}</version>
    			<scope>runtime</scope>
    		</dependency>
     
    		<!-- Hibernate -->
    		<dependency>
    			<groupId>org.hibernate</groupId>
    			<artifactId>hibernate-entitymanager</artifactId>
    			<version>${hibernate.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.hibernate</groupId>
    			<artifactId>hibernate-core</artifactId>
    			<version>3.6.0.Final</version>
    		</dependency>
    		<!-- jcr -->
    		<dependency>
    			<groupId>javax.jcr</groupId>
    			<artifactId>jcr</artifactId>
    			<version>2.0</version>
    		</dependency>
     
    		<dependency>
    		    <groupId>javax.servlet</groupId>
    		    <artifactId>javax.servlet-api</artifactId>
    		    <version>3.1.0</version>
    		</dependency>
     
    		<dependency>
    			<groupId>postgresql</groupId>
    			<artifactId>postgresql</artifactId>
    			<version>9.1-901-1.jdbc4</version>
    		</dependency>
    		<dependency>
    			<groupId>commons-dbcp</groupId>
    			<artifactId>commons-dbcp</artifactId>
    			<version>1.4</version>
    		</dependency>
    	</dependencies>
     
    </project>

    voila le site ou je me suis inspiré
    https://www.mkyong.com/spring/maven-...mysql-example/

  11. #11
    Rédacteur/Modérateur
    Avatar de andry.aime
    Homme Profil pro
    Inscrit en
    Septembre 2007
    Messages
    8 391
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Ile Maurice

    Informations forums :
    Inscription : Septembre 2007
    Messages : 8 391
    Points : 15 059
    Points
    15 059
    Par défaut
    Non, tu n'as pas tout modifié, regarde ce que tu as ici
    Citation Envoyé par Dev_JavaEE Voir le message
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    		<dependency>
    			<groupId>org.hibernate</groupId>
    			<artifactId>hibernate-core</artifactId>
    			<version>3.6.0.Final</version>
    		</dependency>
    A+.

Discussions similaires

  1. Spring Hibernate/JPA MySQL
    Par Reda1989 dans le forum Frameworks Web
    Réponses: 1
    Dernier message: 27/04/2015, 23h07
  2. Problème j2EE, Spring, MySQL, Hibernate sous Debian
    Par vinou94400 dans le forum Hibernate
    Réponses: 0
    Dernier message: 01/02/2012, 23h10
  3. Flex & Java (Hibernate/Spring/MySQL)
    Par ChristopheD dans le forum Flex
    Réponses: 2
    Dernier message: 19/03/2010, 12h35
  4. Problème mysql + hibernate + spring
    Par tmahatody dans le forum Hibernate
    Réponses: 1
    Dernier message: 05/03/2008, 19h35
  5. [Hibernate][Spring] Session Hibernate initialisée
    Par mauvais_karma dans le forum Hibernate
    Réponses: 12
    Dernier message: 08/08/2005, 14h07

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo