Dezim
unread,Jun 21, 2010, 10:04:53 AM6/21/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Hibernate Brasil
Bom dia,
Bem novamente seguindo os passos do arquivo
hibernate_reference20061120.pdf adaptando para o MySQL continua com um
erro quando eu executo store abaixo a saida gerada:
10:58:01,598 INFO Environment:464 - Hibernate 3.0.5
10:58:01,618 INFO Environment:477 - hibernate.properties not found
10:58:01,731 INFO Environment:510 - using CGLIB reflection optimizer
10:58:01,743 INFO Environment:540 - using JDK 1.4 java.sql.Timestamp
handling
10:58:01,950 INFO Configuration:1110 - configuring from resource: /
hibernate.cfg.xml
10:58:01,951 INFO Configuration:1081 - Configuration resource: /
hibernate.cfg.xml
10:58:02,280 INFO Configuration:444 - Mapping resource: events/
Event.hbm.xml
10:58:02,536 INFO HbmBinder:260 - Mapping class: events.Event ->
events
10:58:02,612 INFO Configuration:1222 - Configured SessionFactory:
null
10:58:02,627 INFO Configuration:875 - processing extends queue
10:58:02,628 INFO Configuration:879 - processing collection mappings
10:58:02,630 INFO Configuration:888 - processing association property
references
10:58:02,630 INFO Configuration:917 - processing foreign key
constraints
10:58:02,811 INFO DriverManagerConnectionProvider:41 - Using
Hibernate built-in connection pool (not for production use!)
10:58:02,812 INFO DriverManagerConnectionProvider:42 - Hibernate
connection pool size: 1
10:58:02,813 INFO DriverManagerConnectionProvider:45 - autocommit
mode: false
10:58:02,891 INFO DriverManagerConnectionProvider:80 - using driver:
com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/testeHibernate
10:58:02,891 INFO DriverManagerConnectionProvider:86 - connection
properties: {user=root, password=****}
Mon Jun 21 10:58:03 BRT 2010 WARN: Invalid value {1} for server
variable named {0}, falling back to sane default of {2}.
10:58:03,593 INFO SettingsFactory:77 - RDBMS: MySQL, version: 3.23.47-
nt
10:58:03,593 INFO SettingsFactory:78 - JDBC driver: MySQL-AB JDBC
Driver, version: mysql-connector-java-5.1.7 ( Revision: $
{svn.Revision} )
10:58:03,631 INFO Dialect:92 - Using dialect:
org.hibernate.dialect.MySQLDialect
10:58:03,651 INFO TransactionFactoryFactory:31 - Using default
transaction strategy (direct JDBC transactions)
10:58:03,654 INFO TransactionManagerLookupFactory:33 - No
TransactionManagerLookup configured (in JTA environment, use of read-
write or transactional second-level cache is not recommended)
10:58:03,654 INFO SettingsFactory:125 - Automatic flush during
beforeCompletion(): disabled
10:58:03,655 INFO SettingsFactory:129 - Automatic session close at
end of transaction: disabled
10:58:03,655 INFO SettingsFactory:136 - JDBC batch size: 15
10:58:03,656 INFO SettingsFactory:139 - JDBC batch updates for
versioned data: disabled
10:58:03,657 INFO SettingsFactory:144 - Scrollable result sets:
enabled
10:58:03,657 INFO SettingsFactory:152 - JDBC3 getGeneratedKeys():
enabled
10:58:03,658 INFO SettingsFactory:160 - Connection release mode: null
10:58:03,659 INFO SettingsFactory:184 - Maximum outer join fetch
depth: 2
10:58:03,659 INFO SettingsFactory:187 - Default batch fetch size: 1
10:58:03,660 INFO SettingsFactory:191 - Generate SQL with comments:
disabled
10:58:03,660 INFO SettingsFactory:195 - Order SQL updates by primary
key: disabled
10:58:03,660 INFO SettingsFactory:334 - Query translator:
org.hibernate.hql.ast.ASTQueryTranslatorFactory
10:58:03,680 INFO ASTQueryTranslatorFactory:21 - Using
ASTQueryTranslatorFactory
10:58:03,680 INFO SettingsFactory:203 - Query language substitutions:
{}
10:58:03,681 INFO SettingsFactory:209 - Second-level cache: enabled
10:58:03,681 INFO SettingsFactory:213 - Query cache: disabled
10:58:03,682 INFO SettingsFactory:321 - Cache provider:
org.hibernate.cache.NoCacheProvider
10:58:03,684 INFO SettingsFactory:228 - Optimize cache for minimal
puts: disabled
10:58:03,684 INFO SettingsFactory:237 - Structured second-level cache
entries: disabled
10:58:03,697 INFO SettingsFactory:257 - Echoing all SQL to stdout
10:58:03,697 INFO SettingsFactory:261 - Statistics: disabled
10:58:03,698 INFO SettingsFactory:265 - Deleted entity synthetic
identifier rollback: disabled
10:58:03,699 INFO SettingsFactory:279 - Default entity-mode: pojo
10:58:03,946 INFO SessionFactoryImpl:152 - building session factory
10:58:04,473 INFO SessionFactoryObjectFactory:82 - Not binding
factory to JNDI, no JNDI name configured
10:58:04,476 INFO SessionFactoryImpl:379 - Checking 0 named queries
Exception in thread "main" org.hibernate.HibernateException: No
TransactionManagerLookup specified
at
org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:
503)
at events.EventManager.createAndStoreEvent(EventManager.java:20)
at events.EventManager.main(EventManager.java:13)