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.
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).
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.
Z. Stephenson, Y. Zhan, J. Clark, and J. McDermid. Proceedings of the International Workshop on Software Product Line Testing (SPLiT 2004), page 13--18. Boston, MA, (August 2004)ST:Fokus liegt auf Test der Variablen Artefakte, es soll gezeigt werden dass das richtige Produkt abgeleitet wurde. Test der Korrekten Bindung.
Testdaten-Generierung um zu zeigen, dass der Output sich für zwei unterschiedliche Varianten unterscheidet. Output wird dann gegen die Anforderungen der verschiedenen Varianten getestet, so kann festgestellt werden, ob die richtige Variante gebunden wurde.
Technik erfordert lauffähiges Produkt.
Entwicklung eines Tools, welches für zwei Sourceocde-Artefakte, die sich durch Variabilität unterscheiden, Testdaten generiert.
Fazit: eher für die Überprüfung geeignet ob Varianten korrekt gebunden wurden. Kein Wiederverwendungsansatz für Testdaten, keine explizite Trennung der Testdatenermittlung für Domain / Application Engineering..
T. Eichmann, K. Lorenz, M. Hoffmann, J. Brockmann, C. Krasel, M. Lohse, and U. Quitterer. J Biol Chem, 278 (10):
8052-7(March 2003)Eichmann, Tanja Lorenz, Kristina Hoffmann, Michaela Brockmann, Jorg
Krasel, Cornelius Lohse, Martin J Quitterer, Ursula Research Support,
Non-U.S. Gov't United States The Journal of biological chemistry
J Biol Chem. 2003 Mar 7;278(10):8052-7. Epub 2002 Dec 16..
S. Moro, M. Bacilieri, B. Cacciari, C. Bolcato, C. Cusan, G. Pastorin, K. Klotz, and G. Spalluto. Bioorg Med Chem, 14 (14):
4923-32(July 2006)Moro, Stefano Bacilieri, Magdalena Cacciari, Barbara Bolcato, Chiara
Cusan, Claudia Pastorin, Giorgia Klotz, Karl-Norbert Spalluto, Giampiero
In Vitro Research Support, Non-U.S. Gov't England Bioorganic & medicinal
chemistry Bioorg Med Chem. 2006 Jul 15;14(14):4923-32. Epub 2006
Mar 29..
A. Fargin, J. Raymond, M. Lohse, B. Kobilka, M. Caron, and R. Lefkowitz. Nature, 335 (6188):
358-60(September 1988)Fargin, A Raymond, J R Lohse, M J Kobilka, B K Caron, M G Lefkowitz,
R J Research Support, Non-U.S. Gov't England Nature Nature. 1988
Sep 22;335(6188):358-60..
M. Castro, V. Nikolaev, D. Palm, M. Lohse, and J. Vilardaga. Proc Natl Acad Sci U S A, 102 (44):
16084-9(November 2005)Castro, Marian Nikolaev, Viacheslav O Palm, Dieter Lohse, Martin
J Vilardaga, Jean-Pierre Research Support, Non-U.S. Gov't United
States Proceedings of the National Academy of Sciences of the United
States of America Proc Natl Acad Sci U S A. 2005 Nov 1;102(44):16084-9.
Epub 2005 Oct 18..