Add entity beans

Add an entity bean for each entity.
Use an apstract generic class for boilerplate code.