java - jdbc model instrumentation classes -


i have maven project work database. connected database correctly. , queries java code working, can insert new data base or update, etc. need make method show data tables. need create class extends model activejdbc.model. class:

import org.javalite.activejdbc.model; import org.javalite.activejdbc.annotations.table;  @table("emp") public class emp extends model{     static{         validatepresenceof("empno", "ename");     }  } 

whenever i'm trying use class in programm doesn't work exception:

exception in thread "main" org.javalite.activejdbc.initexception: failed determine model class name, sure models have been instrumented?     @ org.javalite.activejdbc.model.getdaclass(model.java:2801)     @ org.javalite.activejdbc.model.findall(model.java:2386)     @ program.main(program.java:14)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:483)     @ com.intellij.rt.execution.application.appmain.main(appmain.java:140) 

i've no idea how fix that. i've wasted time google didn't find useful. me please. don't need use cmd or jar. should add project?

fixed. needed use button "package" in maven projects lifecycle.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -