Run EJB3Unit against Oracle Database
Posted
by justastefan
on Stack Overflow
See other posts from Stack Overflow
or by justastefan
Published on 2010-02-24T14:15:06Z
Indexed on
2010/04/06
15:03 UTC
Read the original article
Hit count: 331
I want to run EJB3Unit-Test in my oracle 10g Database. Therefore I use this configuration (ejb3unit.properties).
### The ejb3unit configuration file ###
ejb3unit.inMemoryTest=false
ejb3unit.connection.url=jdbc:oracle:thin:....:1432:SID
ejb3unit.connection.driver_class=oracle.jdbc.OracleDriver
ejb3unit.connection.username=user
ejb3unit.connection.password=name
ejb3unit.dialect=org.hibernate.dialect.Oracle10gDialect
ejb3unit.show_sql=true
## values are create-drop, create, update ##
ejb3unit.schema.update=create
I will result in the following error:
Caused by: HibernateException: cannot instantiate dialect class
...
org.hibernate.dialect.Oracle10gDialect cannot be cast to org.ejb3unit.hibernate.dialect.Dialect
How can ejb3unit-testing be done using oracle db?
© Stack Overflow or respective owner