pomału zaczynam to poznawać ale mam taki problem
plik hibernate.cfg.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration
PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.url">jdbc:sqlserver://localhost:1433:hibernate;shutdown=true</property>
<property name="hibernate.connection.driver_class">com.microsoft.sqlserver.jdbc.SQLServerDriver</property>
<property name="hibernate.connection.username">11</property>
<property name="hibernate.connection.password">11</property>
<property name="hibernate.connection.pool_size">0</property>
<property name="hibernate.jdbc.batch_size">0</property>
<property name="hibernate.jdbc.use_scrollable_resultsets">false</property>
<property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
<!-- You will usually want to set this to true while debugging Hibernate queries -->
<property name="hibernate.show_sql">true</property>
<!-- "Import" the mapping resources here -->
<mapping resource="Uzytkownicy.hbm.xml"/>
</session-factory>
</hibernate-configuration>
Nie wiem czy ten plik konfiguracyjny jest dobrze napisany. Najbardziej chodzi mi o konfiguracje z bazą danych SQL server 2005. podczas kompilacji wyskakuje taki błąd
WARNING: Could not obtain connection metadata
com.microsoft.sqlserver.jdbc.SQLServerException: The port number 1433:hibernate is not valid.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
at jdbctur.Main.main(Main.java:52)
Zapewne chodzi coś z połączeneim do bazy ale nie mam pojęcia co źle zrobiłem. Prosze o podpowiedź:)