以前は使用AnnotationConfiguration
していましたが、現在は廃止されています
AnnotationConfiguration cfg = new AnnotationConfiguration();
cfg.addAnnotatedClass(Product.class);
factory = cfg.buildSessionFactory();
そのため、instedを使用することをお勧めしますConfiguration
が、それでもいくつかのエラーが発生します:
.
セッションファクトリを今どのように構築するのですか?