Created entity classes with netbeans 'create entities from database' wizard.