第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

junit生成表結(jié)構(gòu)報錯ERROR: HHH000099: an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session): java.lang.ClassNotFoundException: entity.Students


package entity;


import org.hibernate.Session;

import org.hibernate.SessionFactory;

import org.hibernate.cfg.Configuration;

import org.hibernate.service.ServiceRegistry;

import org.hibernate.service.ServiceRegistryBuilder;

import org.hibernate.tool.hbm2ddl.SchemaExport;

import org.junit.Test;


public class TextStudents {

? ? ? @Test

? ? ? public void testSchenaExport()

? ? ? {

? ? ?Configuration config=new Configuration().configure();

? ServiceRegistry serviceRegistry = new ServiceRegistryBuilder().applySettings(

? config.getProperties()).buildServiceRegistry();

? SessionFactory sessionFactory=config.buildSessionFactory(serviceRegistry);

? Session session=sessionFactory.getCurrentSession();

? SchemaExport export=new SchemaExport(config);

? export.create(true, true);

? ? ? }

}


正在回答

舉報

0/150
提交
取消

junit生成表結(jié)構(gòu)報錯ERROR: HHH000099: an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session): java.lang.ClassNotFoundException: entity.Students

我要回答 關(guān)注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號