Posts

Showing posts with the label java

Discrimanator annotation in Hibernate

Just a note I don't want to forget, @Discriminator annotation for Hibernate, is that, it's idea is base on the enum type in database or perhaps just a type discriminator for a record on how to identify it. It's powerful, and is a helpful feature of hibernate.

Java - make a jar file and include external classes or jar files, creating keystore, and signing a jar app

Compiling java app D:\java_apps\myapp>javac -verbose -sourcepath src_code_dir -classpath extlib\jai-1_1_4-pre-dr-b03-lib-windows-i586-28_Sep_2009\lib\ext\jai_codec.jar;"C:\Program Files\Java\jre6\lib\plugin.jar"; -d sod sod\org\myapp\ScanDriverApplet.java -d                destination directory for class files -verbose         includes information about each class loaded and each source                   file compiled. -classpath       Set the user class path, overriding the user class path in the                  CLASSPATH environment variable. If neither CLASSPATH or                   -classpath is specified, the user class path consists                   of the current di...