Új hozzászólás Aktív témák
-
válasz
Amartus
#5499
üzenetére
Itt egy HibernateUtil.
public class HibernateUtil {
private static final SessionFactory sessionFactory;
static {
try {
// Create the SessionFactory from standard (hibernate.cfg.xml)
// config file.
sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory();
} catch (HibernateException ex) {
// Log the exception.
System.err.println("Initial SessionFactory creation failed." + ex);
throw new ExceptionInInitializerError(ex);
}
}
public static SessionFactory getSessionFactory() {
return sessionFactory;
}
}De milyen DB-vel próbálkozol? A hibernate config fájl a helyén van? Az hogy néz ki nálad?
Új hozzászólás Aktív témák
A topicot kiemeltem. Valaki nem akar egy nyitó hsz-t írni?:))
- Apple Magic Mouse A3204 (USB-C)
- 179 - 180 - 189 - Lenovo LOQ (15IRX9) - Intel Core i7-13650HX, RTX 4060
- 235 - Lenovo Legion Pro 7 (16IRX9H) - Intel Core i9-14900HX, RTX 4090
- Keresünk iPhone 15/15 Plus/15 Pro/15 Pro Max
- AKCIÓ! LENOVO ThinkPad P15 Gen 1 munkaállomás - i7 10850H 16GB DDR4 256GB SSD Quadro T2000 W11
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest

