The questions and answers for using DBMaker + Hibernate? (DBMR2604)

~ 0 min
2016-03-18 09:03

Users should pay attention to the following FAQ:

Q 1: How to handle the error “java.lang.ClassNotFoundException: dbmaker.sql.JdbcOdbcDriver”?

A 1: Copy dmjdbc30.jar to x:\xxxx\lib.

Q 2: How to handle the error “java.lang.UnsatisfiedLinkError: no dmjdbc52 in java.library.path”?

A 2: set the value of the path environment variable to %path%;c:\dbmaker\5.2\bin.

Q 3:How to handle the error that Hibernate cannot find database name?

A 3:Copy DBMakerDialect .java to the relevant directory and make the following change in DataSource.groovy.

dataSource {

………..

dialect = org.hibernate.dialect. DBMakerDialect

}

Q 4:How to handle the error “java.sql.SQLException: parameter number not in valid parameter number range : 1~ 2

at dbmaker.sql.JdbcOdbc.JDBCError(JdbcOdbc.java:220)

at dbmaker.sql.JdbcOdbcPreparedStatement.setInt(JdbcOdbcPreparedStatement.java:478)”?

A 4:Replace findWhere with findAllWhere in the Controllers code (ex: UserController.groovy), and replace list(params) with getAll() in the Services code (ex: LoginService.groovy).

Version: All

Product: Normal/Bundle

Platform: Linux

Average rating 0 (0 Votes)

You cannot comment on this entry

Tags