gpt4 book ai didi

java - 如何在 netbeans 7.4 中删除 hibernate 中的警告

转载 作者:行者123 更新时间:2023-12-01 13:36:09 25 4
gpt4 key购买 nike

我正在使用 Netbeans 进行 hibernate 。当我运行该文件时,它运行成功但生成警告

3 [AWT-EventQueue-0] INFO org.hibernate.annotations.common.Version - Hibernate Commons Annotations 3.2.0.Final
99 [AWT-EventQueue-0] INFO org.hibernate.cfg.Environment - Hibernate 3.6.10.Final
100 [AWT-EventQueue-0] INFO org.hibernate.cfg.Environment - hibernate.properties not found
103 [AWT-EventQueue-0] INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist
105 [AWT-EventQueue-0] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
148 [AWT-EventQueue-0] INFO org.hibernate.cfg.Configuration - configuring from resource: hibernate.cfg.xml
148 [AWT-EventQueue-0] INFO org.hibernate.cfg.Configuration - Configuration resource: hibernate.cfg.xml
188 [AWT-EventQueue-0] WARN org.hibernate.util.DTDEntityResolver - recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
208 [AWT-EventQueue-0] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : clinic/entity/PatientDetail.hbm.xml
264 [AWT-EventQueue-0] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : clinic/entity/PatientVisit.hbm.xml
324 [AWT-EventQueue-0] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : clinic/entity/DocTimeSlot.hbm.xml
375 [AWT-EventQueue-0] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : clinic/entity/Admin.hbm.xml
415 [AWT-EventQueue-0] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : clinic/entity/Users.hbm.xml
436 [AWT-EventQueue-0] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : clinic/entity/Invoice.hbm.xml
452 [AWT-EventQueue-0] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : clinic/entity/DocDetail.hbm.xml
469 [AWT-EventQueue-0] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : clinic/entity/Appoinment.hbm.xml
486 [AWT-EventQueue-0] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : clinic/entity/RecpDetail.hbm.xml
507 [AWT-EventQueue-0] INFO org.hibernate.cfg.Configuration - Configured SessionFactory: null
604 [AWT-EventQueue-0] INFO org.hibernate.cfg.HbmBinder - Mapping class: clinic.entity.PatientDetail -> patient_detail
615 [AWT-EventQueue-0] INFO org.hibernate.cfg.HbmBinder - Mapping class: clinic.entity.PatientVisit -> patient_visit
617 [AWT-EventQueue-0] INFO org.hibernate.cfg.HbmBinder - Mapping class: clinic.entity.DocTimeSlot -> doc_time_slot
618 [AWT-EventQueue-0] INFO org.hibernate.cfg.HbmBinder - Mapping class: clinic.entity.Admin -> admin
619 [AWT-EventQueue-0] INFO org.hibernate.cfg.HbmBinder - Mapping class: clinic.entity.Users -> users
620 [AWT-EventQueue-0] INFO org.hibernate.cfg.HbmBinder - Mapping class: clinic.entity.Invoice -> invoice
621 [AWT-EventQueue-0] INFO org.hibernate.cfg.HbmBinder - Mapping class: clinic.entity.DocDetail -> doc_detail
622 [AWT-EventQueue-0] INFO org.hibernate.cfg.HbmBinder - Mapping class: clinic.entity.Appoinment -> appoinment
624 [AWT-EventQueue-0] INFO org.hibernate.cfg.HbmBinder - Mapping class: clinic.entity.RecpDetail -> recp_detail
631 [AWT-EventQueue-0] INFO org.hibernate.cfg.Configuration - Hibernate Validator not found: ignoring
635 [AWT-EventQueue-0] INFO org.hibernate.cfg.search.HibernateSearchEventListenerRegister - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
642 [AWT-EventQueue-0] INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
646 [AWT-EventQueue-0] INFO org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 20
648 [AWT-EventQueue-0] INFO org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false
654 [AWT-EventQueue-0] INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/clinic_mgmt?zeroDateTimeBehavior=convertToNull
656 [AWT-EventQueue-0] INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=root, password=****}
933 [AWT-EventQueue-0] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQLDialect

如何删除此类警告?

最佳答案

你指的是这一行吗?

188 [AWT-EventQueue-0] WARN org.hibernate.util.DTDEntityResolver - recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!

你按照上面说的做了吗?它说要更新命名空间,如果您想知道原因,请参阅迁移指南...

关于java - 如何在 netbeans 7.4 中删除 hibernate 中的警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21255729/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com