First thing, does your HibernateSequenceGen class extend one of the classes in the net.sf.hibernate.id package or implement net.sf.hibernate.id.Configurable? To use parameters you need to implement the configure() method in your class. Here's an example of an implementation: (in a class that extends net.sf.hibernate.id.SequenceGenerator)
Code:
public void configure(
Type type,
Properties params,
Dialect dialect
)
throws MappingException {
super.configure(
type,
params,
dialect
);
String fooProperty = params.getProperty("foo");
}
This would set the <param> "foo".