Relative Content

Tag Archive for hibernate

Dynamically generate and register an entity with Hibernate

I want to generate entities on the fly and register such entities with Hibernate at runtime, ideally I would like to do something similarly to what EclipseLink does with its Dynamic persistence: https://wiki.eclipse.org/EclipseLink/Examples/JPA/Dynamic.
For example:

Dinamically generate and register an entity with Hibernate

I want to generate entities on the fly and register such entities with Hibernate at runtime, ideally I would like to do something similarly to what EclipseLink does with its Dynamic persistence: https://wiki.eclipse.org/EclipseLink/Examples/JPA/Dynamic.
For example:

Logic based on modified fields of a Hibernate entity

I have a Hibernate entity object MyObject with several attributes and a service MyObjectService containing business logic dealing with MyObject. I also have a view model dealing with user input/output which uses MyOjectService. This service contains method updateMyObject(MyObject o) which is called by the view model when user changes some attributes, and it saves these changes into the database.

Logic based on modified fields of a Hibernate entity

I have a Hibernate entity object MyObject with several attributes and a service MyObjectService containing business logic dealing with MyObject. I also have a view model dealing with user input/output which uses MyOjectService. This service contains method updateMyObject(MyObject o) which is called by the view model when user changes some attributes, and it saves these changes into the database.