- This topic has 1 reply, 2 voices, and was last updated 13 years, 9 months ago by support-swapna.
-
AuthorPosts
-
mallikarjun_108MemberHelp me with this one i am new to hibernate i am using MyEclipse 6 to developing the hibernate application
I got following Exception21:44:47,437 INFO Environment:479 – Hibernate 3.1.3
21:44:47,437 INFO Environment:509 – hibernate.properties not found
21:44:47,437 INFO Environment:525 – using CGLIB reflection optimizer
21:44:47,453 INFO Environment:555 – using JDK 1.4 java.sql.Timestamp handling
21:44:47,500 INFO Configuration:1308 – configuring from resource: /hibernate.cfg.xml
21:44:47,500 INFO Configuration:1285 – Configuration resource: /hibernate.cfg.xml
21:44:47,703 INFO Configuration:469 – Reading mappings from resource: p1/Employee.hbm.xml
21:44:47,796 INFO HbmBinder:309 – Mapping class: p1.Employee -> EMPLOYEE
21:44:47,812 INFO Configuration:1419 – Configured SessionFactory: null
21:44:47,984 INFO DriverManagerConnectionProvider:41 – Using Hibernate built-in connection pool (not for production use!)
21:44:47,984 INFO DriverManagerConnectionProvider:42 – Hibernate connection pool size: 20
21:44:47,984 INFO DriverManagerConnectionProvider:45 – autocommit mode: false
21:44:48,015 INFO DriverManagerConnectionProvider:80 – using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@localhost:1521:ORACLE
21:44:48,015 INFO DriverManagerConnectionProvider:86 – connection properties: {user=scott, password=****}
21:44:48,234 INFO SettingsFactory:77 – RDBMS: Oracle, version: Oracle9i Enterprise Edition Release 9.0.1.1.1 – Production
With the Partitioning option
JServer Release 9.0.1.1.1 – Production
21:44:48,234 INFO SettingsFactory:78 – JDBC driver: Oracle JDBC driver, version: 9.2.0.8.0
21:44:48,265 INFO Dialect:103 – Using dialect: org.hibernate.dialect.Oracle9Dialect
21:44:48,265 INFO TransactionFactoryFactory:31 – Using default transaction strategy (direct JDBC transactions)
21:44:48,265 INFO TransactionManagerLookupFactory:33 – No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
21:44:48,265 INFO SettingsFactory:125 – Automatic flush during beforeCompletion(): disabled
21:44:48,265 INFO SettingsFactory:129 – Automatic session close at end of transaction: disabled
21:44:48,265 INFO SettingsFactory:136 – JDBC batch size: 15
21:44:48,265 INFO SettingsFactory:139 – JDBC batch updates for versioned data: disabled
21:44:48,265 INFO SettingsFactory:144 – Scrollable result sets: enabled
21:44:48,265 INFO SettingsFactory:152 – JDBC3 getGeneratedKeys(): disabled
21:44:48,265 INFO SettingsFactory:160 – Connection release mode: auto
21:44:48,281 INFO SettingsFactory:187 – Default batch fetch size: 1
21:44:48,281 INFO SettingsFactory:191 – Generate SQL with comments: disabled
21:44:48,281 INFO SettingsFactory:195 – Order SQL updates by primary key: disabled
21:44:48,281 INFO SettingsFactory:338 – Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
21:44:48,281 INFO ASTQueryTranslatorFactory:24 – Using ASTQueryTranslatorFactory
21:44:48,281 INFO SettingsFactory:203 – Query language substitutions: {}
21:44:48,281 INFO SettingsFactory:209 – Second-level cache: enabled
21:44:48,281 INFO SettingsFactory:213 – Query cache: disabled
21:44:48,281 INFO SettingsFactory:325 – Cache provider: org.hibernate.cache.EhCacheProvider
21:44:48,281 INFO SettingsFactory:228 – Optimize cache for minimal puts: disabled
21:44:48,281 INFO SettingsFactory:237 – Structured second-level cache entries: disabled
21:44:48,281 INFO SettingsFactory:257 – Echoing all SQL to stdout
21:44:48,281 INFO SettingsFactory:264 – Statistics: disabled
21:44:48,281 INFO SettingsFactory:268 – Deleted entity synthetic identifier rollback: disabled
21:44:48,281 INFO SettingsFactory:283 – Default entity-mode: pojo
21:44:48,312 INFO SessionFactoryImpl:154 – building session factory
21:44:48,312 DEBUG CacheManager:191 – Creating new CacheManager with default config
21:44:48,312 DEBUG CacheManager:164 – Configuring ehcache from classpath.
21:44:48,312 WARN Configurator:126 – No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Program%20Files/MyEclipse%206.0/myeclipse/eclipse/plugins/com.genuitec.org.hibernate.eclipse_6.0.1.zmyeclipse601200710/myeclipse-data/3.0/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
21:44:48,328 DEBUG Configuration$DiskStore:185 – Disk Store Path: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
21:44:48,453 INFO SessionFactoryObjectFactory:82 – Not binding factory to JNDI, no JNDI name configuredorg.hibernate.MappingException: Unknown entity: p1.EmployeeId
//the above exception printed in from testprogect file for testing the hibernate application.
support-swapnaModeratormallikarjun_108,
1. Clear the .log which is located at <workspace dir>/.metadata folder. Now try running your application and paste the errors logged in the .log file here for me.
2. This exception happens when you do not define the entity mapping correctly. Check if you have missed defining them in the mapping file.
3. Here are tutorials which will help you get started with Hibernate in MyEclipse. Please go through them and try :
http://www.myeclipseide.com/documentation/quickstarts/hibernateintroduction/
http://www.myeclipseide.com/documentation/quickstarts/hibernate/ -
AuthorPosts