I've connected my database to netbeans and it automatically generated some code for me. This is one of the files of code it created.

/*
* To change this template, choose Tools | Templates
*...