Quantcast
Channel: Java Programming Forum - Learn Java Programming - Hibernate
Viewing all articles
Browse latest Browse all 76

Hibernate Properties

$
0
0
I don't understand what's happen. I import a project and when run recieve this error in DAO:

Compiling 3 source files to E:\NetBeansProjects\i582\Agenda_Model\build\classe s
warning: [options] bootstrap class path not set in conjunction with -source 1.5
Note: E:\NetBeansProjects\i582\Agenda_Model\src\br\com\i nfnet\contatos\ContatoDAO.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
Copying 3 files to E:\NetBeansProjects\i582\Agenda_Model\build\classe s
compile:



and this in hibernate.cfg.xml

Mai 19, 2013 4:41:46 PM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
Mai 19, 2013 4:41:46 PM org.hibernate.cfg.Environment buildBytecodeProvider


The proprties of hibernate are the following:
<!-- Database connection settings -->
<property name="connection.driver_class">org.postgresql.Driv er</property>
<property name="connection.url">jdbc:postgresql://localhost:5432/postgres</property>
<property name="connection.username">postgres</property>
<property name="connection.password">postgres</property>

<!-- JDBC connection pool (use the built-in) -->
<property name="connection.pool_size">1</property>

<!-- SQL dialect -->
<property name="dialect">org.hibernate.dialect.PostgreSQLDia lect</property>

<!-- Enable Hibernate's automatic session context management -->
<property name="current_session_context_class">thread</property>

<!-- Disable the second-level cache -->
<property name="cache.provider_class">org.hibernate.cache.No CacheProvider</property>

<!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property>

<!-- Drop and re-create the database schema on startup -->
<property name="hbm2ddl.auto">update</property>

<mapping resource="Contato.hbm.xml"/>

</session-factory>

Viewing all articles
Browse latest Browse all 76

Trending Articles