October 30, 2007

Paint Event Not Called During Form Resize

Many of us write common graphics code in the Form’s Paint event because the Paint Event handler provides access to the Graphics object, and also because this handler is fired

Mapping a Component in Hibernate

A “component” in Hibernate is an object persisted as a value, not an entity reference. For example, suppose you have a Car class, like this: //class Carpublic class Car {