datahistory

Hibernate: Is there a way to programatically create new tables that resemble an existing one?

I have a web app that have many tables (each represents a POJO). I wrote mapping files for each class and then use Hibernate's SchemaExport to generate the tables in my database. Now I want to create 2 additional tables for each existing table that was created: User permission table - stores user permissions on the POJO specific to ea...

Implementing a data history / versioning solution for a Hibernate-based application (with a twist).

First the basic facts: Java webapp, Spring, Hibernate, MySQL. The situation is that I have a complex object model of e.g. a Car. It's composed of many objects (Engine, Tires, ...) with many-to-one and one-to-many relationships between them. Now there are many cars, and every now and then someone inspects a car and creates a Report of...