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

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Error when execution
PostPosted: Thu Apr 09, 2009 5:44 am 
Newbie

Joined: Wed Apr 08, 2009 4:57 am
Posts: 6
Location: FRANCE
hi,
i have this error, can you help me plz

Code:
9 avr. 2009 11:14:01 org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.3.1.GA
9 avr. 2009 11:14:01 org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
9 avr. 2009 11:14:01 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : javassist
9 avr. 2009 11:14:01 org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
9 avr. 2009 11:14:01 org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
9 avr. 2009 11:14:01 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
9 avr. 2009 11:14:01 org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : HibTest/rsyncBean/Personne.hbm.xml
9 avr. 2009 11:14:01 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: HibTest.rsyncBean.Personne -> personne
9 avr. 2009 11:14:01 org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : HibTest/rsyncBean/Compte.hbm.xml
9 avr. 2009 11:14:01 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: HibTest.rsyncBean.Compte -> compte
9 avr. 2009 11:14:01 org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
Initial SessionFactory creation failed.org.hibernate.MappingException: Could not determine type for: String, at table: personne, for columns: [org.hibernate.mapping.Column(EMAIL)]
Exception in thread "main" java.lang.ExceptionInInitializerError
        at HibTest.rsyncModel.HibernateUtil.<clinit>(HibernateUtil.java:30)
        at HibTest.rsyncModel.EventManager.getPersonne(EventManager.java:30)
        at HibTest.rsyncModel.EventManager.main(EventManager.java:21)
Caused by: org.hibernate.MappingException: Could not determine type for: String, at table: personne, for columns: [org.hibernate.mapping.Column(EMAIL)]
        at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:292)
        at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:276)
        at org.hibernate.mapping.Property.isValid(Property.java:207)
        at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:458)
        at org.hibernate.mapping.RootClass.validate(RootClass.java:215)
        at org.hibernate.cfg.Configuration.validate(Configuration.java:1135)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1320)
        at HibTest.rsyncModel.HibernateUtil.<clinit>(HibernateUtil.java:25)
        ... 2 more


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 09, 2009 8:30 am 
Expert
Expert

Joined: Fri Jul 13, 2007 8:18 am
Posts: 370
Location: london
Try "string" instead of "String" - i.e. all lower case


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

All times are UTC - 5 hours [ DST ]


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

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