oracle10g - org.hibernate.HibernateException: Dialect class not found when using custom Dialect -


hello i'm trying find solution oracle conversions problem (doesn't accept "number" double) jboss 7.1 , hibernate. so, best suggested solution make custom dialect way :

public class myoracle10gdialect extends oracle10gdialect { public myoracle10gdialect() {     super(); } protected void registernumerictypemappings() {     super.registernumerictypemappings();     registercolumntype( types.double, "number" ); }} 

in hibernate.cfg.xml added :

<property name="hibernate.dialect">com.d2i.sssim.hibercommun.myoracle10gdialect</property> 

but got :

org.hibernate.hibernateexception: dialect class not found: com.d2i.sssim.hibercommun.myoracle10gdialect

it's same project, hibernate connection. should create project 1 class (myoracle10gdialect) , include in project lib? why hibernate.cfg.xml can't see classes in it's own project? help?

you may using hibernate jboss module , such cannot see custom class in application. can try deploy dialect classes custom jboss module.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -