Witam mam dosc dziwny problem polegajacy na tym ze gdy tworze aplikacje webowa z uzyciem frameworka Hibernate i probuje skonfigurowac to przez netbeans( tworze nowe polaczenie z baza danych ustawiam Mysql nazwe bazy i wszystko poprawnie) to wyskakuje mi blad Failed bez zadnej informacji co sie dzieje. Gdy natomiast celowo wpisane dane sa bledne to wyskakuje blad konkretny. Polaczenie w kodzie za pomoca jdbc dziala bez zarzutu.
0
0
Witam
Przykład hibernate.cfg.xml z PostgreSql
<hibernate-configuration>
<session-factory>
<property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
<property name="hibernate.connection.driver_class">org.postgresql.Driver</property>
<property name="hibernate.connection.url">jdbc:postgresql://localhost:5432/Baza_Danych</property>
<property name="hibernate.connection.username">postgres</property>
<property name="hibernate.connection.password">password</property>
<property name="hibernate.current_session_context_class">thread</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<property name="hibernate.show_sql">true</property>
<mapping resource="model/Test.hbm.xml"/><!--Zmapowana tabela-->
</session-factory>
</hibernate-configuration>
Do tego sterownik do bazy w
Pozdrawiam