Thanks max for the quick reply. I started to write a user strategy in myeclipse. This is my source.
package com.proj.product.commons.eo.revengtest;
import org.hibernate.cfg.reveng.DelegatingReverseEngineeringStrategy;
import org.hibernate.cfg.reveng.ReverseEngineeringStrategy;
import org.hibernate.cfg.reveng.TableIdentifier;
public class MyTest1 extends DelegatingReverseEngineeringStrategy {
public MyTest1(ReverseEngineeringStrategy delegate) {
super(delegate);
}
public boolean excludeColumn(TableIdentifier identifier, String columnName) {
System.out.println("columnName Name = '"+ columnName + "'");
if (columnName.contains("_")) { return false; }
return super.excludeColumn(identifier, columnName);
}
I can compile it. After that, I try to set in the Hibernate Code generation,
In main tab,
package : com.proj.product.commons.eo.revengtest
reveng.strategy I put : com.proj.product.commons.eo.revengtest.MyTest1
when I click "Run" , I got an error :
Exception while generating code, "Count not create or find com.proj.product.commons.eo.revengtest.MyTest1 with one argument delegate constructor."
|