Configuration configuration = new Configuration();
String propertiesFileName = "hibernate.cfg.xml";
/*
<hibernate-configuration>
<session-factory>
<property name="connection.driver_class">org.sqlite.JDBC</property>
<property name="hibernate.connection.url">jdbc:sqlite:/c:/Users/Serguei/Desktop/data.db</property>
<property name="connection.username"></property>
<property name="connection.password"></property>
<property name="dialect">example.sqlite.SQLiteDialect</property>
<property name="show_sql">true</property>
<property name="format_sql">true</property>
<mapping class="example.model.Server"/>
<mapping class="example.model.Instance"/>
<mapping class="example.model.Application"/>
</session-factory>
</hibernate-configuration>
*/
configuration.configure("hibernate.cfg.xml");
factory = configuration.buildSessionFactory();
put(webdriver.CommandName.SET_TIMEOUT,
post('/session/:sessionId/timeouts')).
put(webdriver.CommandName.SET_SCRIPT_TIMEOUT,
post('/session/:sessionId/timeouts/async_script')).
put(webdriver.CommandName.IMPLICITLY_WAIT,
... driver.manage().timeouts().setScriptTimeout(scriptTimeout, TimeUnit.SECONDS);
driver.manage().timeouts().implicitlyWait(implicitWait, TimeUnit.SECONDS);
driver.manage().timeouts().pageLoadTimeout(pageLoad , TimeUnit.SECONDS)
https://business.kazanexpress.ru/
отдает вместе с 403 кукуqrator_jsr
1661102257.122.Dy0herR6qWx9Ugvc-307lh3490cvmabj42tmo89gajvg8csor-00
https://business.kazanexpress.ru/__qrator
https://business.kazanexpress.ru/__qrator/validate??pow=88&nonce=1661102257.122.Dy0herR6qWx9Ugvc&qsessid=307lh3490cvmabj42tmo89gajvg8csor
qrator_jsid
Configuration configuration = new Configuration();
SessionFactory factory = configuration.buildSessionFactory();
String query = ...
Session session = factory.openSession()
Query<Object[]> nativeQuery = session.createNativeQuery(query);
List<Object[]> rows = nativeQuery.list();
в конфигурации должны быть явно указаны с пакетами и т.д. классы в которых сущности чтобы внедрение зависимостей прошло