The Java ClassBuilder is a simple framework for bytecode transformation of existing Java classes, in order to make them easily usable for data binding (and other uses) when developing Java desktop applications.
Although the ClassBuilder is a (very lightweight) framework, it's focus is on a set of ready out-of-the-box solutions that aim to bring easy to use data binding to the Java platform. Under the hood it uses the amazing Javassist bytecode transformation library to change the structure of Java classes at runtime.
Let's repeat: the focus of the ClassBuilder is not on providing a framework (there's enough of those already), but providing ready-to-use solutions that utilize it under the hood.
Eclipse RCP forms are very limited for business application demands; this project aims at enhancing UI Forms, Data Binding and puts them together to offer a profound framework for creating, binding and validating forms in Eclipse.
It will be tested against RCP and RAP platforms; thus all Forms created with RCP Forms will run without changes in a Web Browser or in an RCP Application/Eclipse Workbench.
Hibernate allows you to create types and override the fetching/saving metods of the types.
Create a type, e.g., InsertableOnly, which on the fetch sets throws away the database value.
Assuming your value is an Integer because you represent prices in cents to avoid rounding issues:
class InsertOnlyInteger extends org.hibernate.type.IntegerType {
public Object get(ResultSet rs, String name) throws SQLException {
return null;
}
}
Then make the Hibernate type of the attribute InsertOnlyInteger (with xml or annotation, as it suits you).