How to manipulate events which come from database

Hello everybody.

Need help with manipulating events which are stored in database table.
MyCustomEvent is the entity class.
final BeanItemContainer container = new BeanItemContainer(MyCustomEvent.class);

The question: is it right that I’m using BeanItemContainer or I have to use something different.

BeanItemContainer should be able to do the basics for entities, but you don’t have to use BeanItemContainer, other Containers for entities are
JPAContainer
,
LazyQueryContainer
, it all depends on your specific use. ( By entity class I presumed you mean JPA Entity …)