Я пытаюсь настроить очень простое приложение для испытаний javafx-hibernate-hibernatesearch. /> < /blockquote>
При попытке сохранить мои объекты. < /p>
Я следовал руководству быстрого начала поиска Hibernate, но документация несовместима. < /p>
В hibernate.cfg.xml.
./index
< /code>
Мой класс объектов выглядит так < /p>
@Entity
@Indexed
public class Applicant {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@FullTextField
private String surname;
< /code>
Я добавил следующие записи в мой файл pom.xml < /p>
org.hibernate
hibernate-core
6.6.11.Final
org.hibernate.search
hibernate-search-backend-lucene
7.2.3.Final
org.hibernate.search
hibernate-search-mapper-orm
7.2.3.Final
org.jboss.logging
jboss-logging
3.6.1.Final
< /code>
Мой файл модуля info.java выглядит так < /p>
module com.example.hibernate {
requires javafx.controls;
requires javafx.fxml;
requires java.naming;
requires jakarta.persistence;
requires org.hibernate.orm.core;
requires org.hibernate.search.mapper.pojo;
opens com.example.hibernate to javafx.fxml;
exports com.example.hibernate;
exports com.example.hibernate.model;
exports com.example.hibernate.service;
exports com.example.hibernate.util;
opens com.example.hibernate.model to org.hibernate.orm.core;
opens com.example.hibernate.service to javafx.fxml;
}
< /code>
может кто -нибудь, пожалуйста, укажите, как исправить эту ошибку. Спасибо.
Подробнее здесь: https://stackoverflow.com/questions/795 ... rtup-issue