Class HibernateCreator

java.lang.Object
mocka.generator.orm.AbstractCreator
mocka.generator.orm.hibernate.HibernateCreator
All Implemented Interfaces:
ORMResolver

@Component public class HibernateCreator extends AbstractCreator implements ORMResolver
Creates and populates Hibernate entity instances with generated data. This creator handles Hibernate-specific entity creation including:
  • Basic field value generation using HibernateFieldValueGenerator
  • JPA association handling (OneToMany, ManyToOne, OneToOne, ManyToMany)
  • Circular reference prevention through visited path tracking

Collection Size Configuration:

The number of elements generated for collection associations (OneToMany, ManyToMany) is configured through ORMProperties.getAssociationSize().
See Also: