HIbernate and deployment time

I have big javaEE application running under JBOSS (in this case WIldfly 10-13 and JBOSS EAP 7.x)

I see that there is a phase taking long time (depending on HW of course)


2020-04-25 14:01:38,500 INFO  [org.hibernate.Version] (ServerService Thread Pool -- 55) HHH000412: Hibernate Core {5.1.17.Final-redhat-00002}
2020-04-25 14:01:38,502 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 55) HHH000206: hibernate.properties not found
2020-04-25 14:01:38,504 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 55) HHH000021: Bytecode provider name : javassist
2020-04-25 14:01:38,538 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 55) HCANN000001: Hibernate Commons Annotations {5.0.1.Final-redhat-2}
2020-04-25 14:02:11,370 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 55) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'now.ear#now'
2020-04-25 14:02:16,541 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 55) HHH000400: Using dialect: com.dat.abs.shd.ABSHibernateDB2Dialect
2020-04-25 14:02:16,713 INFO  [org.hibernate.envers.boot.internal.EnversServiceImpl] (ServerService Thread Pool -- 55) Envers integration enabled? : false
2020-04-25 14:03:14,470 INFO  [org.jboss.ws.cxf.metadata] (MSC service thread 1-3) JBWS024061: Adding service endpoint metadata:

You can see it care 1 minute between the end of the Envers and the start of the next line

Turning on trace I see all time spent from Hibernate to “parse” object and annotations

Into the persistence.xml I have defined around 2000 “class”

Also adding


doesn’t help

Pojo/entity (the one defined as Class) are “simple” withut one to one or one to many relationship and all have similar structure (someone are big with hundred of columns

public class Test  implements Serializable
	protected TestCollection iTestCollection = new TestCollection ();

EAR is big (with a lot of EJB3 session)… and for big I means including web tier around 400 MB

There is a way to speed up the deployment time?

Maybe generiting before the ORM.xml or other ?
in this case, there is a tool generating it ?