When i generate entity classes from net beans? can i edit them according to my need i.e. can i add more methods in it?

and for me to generate more rows using jdbc using those entity classes, i need another class which does the jdbc code right?

lastly what is the purpose of persistence unit in netbeans? when creating entity classes using databases?