Plan Iq 2.6.7 107: FAQs and Support
The main use cases for an org.hibernate.integrator.spi.Integrator right now are registering event listeners and providing services (see org.hibernate.integrator.spi.ServiceContributingIntegrator).With 5.0 we plan on expanding that to allow altering the metamodel describing the mapping between object and relational models.
plan iq 2.6.7 107
As a hopefully temporary legacy hold-over, it is currently required that all lazy singular associations (many-to-one and one-to-one) also include @LazyToOne(LazyToOneOption.NO_PROXY).The plan is to relax that requirement later.
This is an anti-pattern of opening and closing a Session for each database call in a single thread.It is also an anti-pattern in terms of database transactions.Group your database calls into a planned sequence.In the same way, do not auto-commit after every SQL statement in your application.Hibernate disables or expects the application server to disable, auto-commit mode immediately.Database transactions are never optional.All communication with a database must be encapsulated by a transaction.Avoid auto-commit behavior for reading data because many small transactions are unlikely to perform better than one clearly-defined unit of work, and are more difficult to maintain and extend.