-
HibernateContentRetriever.builder()
Sets the
ChatModel to be used for generating HQL queries from natural language.
Sets the structure of the entity model, which will be provided to the LLM in the system message.
HibernateContentRetriever.HibernateContentRetrieverBuilder.entityManagerFactory(jakarta.persistence.EntityManagerFactory entityManagerFactory)
Sets the EntityManagerFactory to be used for executing HQL queries and extracting the metamodel.
HibernateContentRetriever.HibernateContentRetrieverBuilder.maxRetries(Integer maxRetries)
Sets the maximum number of retries to perform if Hibernate cannot execute the generated HQL query.
HibernateContentRetriever.HibernateContentRetrieverBuilder.sessionFactory(org.hibernate.SessionFactory sessionFactory)
Sets the SessionFactory to be used for executing HQL queries and extracting the metamodel.