0

In a pure JEE webapp i.e. packaged as a war/ear to be deployed on JBoss EAP 6.4.x how can I import in my pom.xml a minimal dependency to Hibernate annotations?

There used to be a hibernate-annotations.jar back in the days, but this artefact isn't updated since around 2010 or maybe 2008.

The reason is to use these Hibernate specific annotations (not supported in JPA) @CreationTimestamp and @UpdateTimestamp

Use case here: https://stackoverflow.com/a/35448348

maxxyme
  • 2,164
  • 5
  • 31
  • 48
  • 1
    But if you add the annotations, you'd need to use hibernate as your JPA provider otherwise they'd be ignored - so you might as well add the whole of hibernate as a dependency. – beny23 Jun 02 '18 at 10:29
  • Of course the JPA provider is Hibernate, JEE server is JBoss!!! – maxxyme Jul 05 '18 at 12:39

0 Answers0