Skip to content

Instantly share code, notes, and snippets.

View tmsBodnar's full-sized avatar
⚔️

tms.bodnar tmsBodnar

⚔️
View GitHub Profile
@shawnz
shawnz / WarnSchemaValidator.java
Last active May 9, 2023 07:08
Hibernate schema validator that outputs warning messages instead of throwing exceptions. Tested with Hibernate 5.3.9
package org.shawnz;
import org.hibernate.boot.Metadata;
import org.hibernate.boot.model.naming.Identifier;
import org.hibernate.boot.model.relational.Sequence;
import org.hibernate.dialect.Dialect;
import org.hibernate.mapping.Column;
import org.hibernate.mapping.Selectable;
import org.hibernate.mapping.Table;
import org.hibernate.tool.schema.extract.spi.ColumnInformation;