Note that there are some explanatory texts on larger screens.

plurals
  1. POconfigure hibernate.cfg.xml for MySQL on Ubuntu 12.04
    primarykey
    data
    text
    <p>I tried to rebuild project settings from SQL Server to Apache 2 with MySQL. I newly at JDBC and can't figure out all aspects.</p> <p>I installed according this tutorial MySQL/JDBC Driver <a href="http://marksman.wordpress.com/2009/03/01/setting-up-mysqljdbc-driver-on-ubuntu/" rel="nofollow">Setting Up MySQL/JDBC Driver on Ubuntu</a>.<br> And test runs perfect after added this <code>.jar</code> file to project.</p> <p>Content of <code>hibernate.cfg.xml</code>:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"&gt; &lt;hibernate-configuration&gt; &lt;session-factory&gt; &lt;!-- /MYPC:1433/Blog;instance=SQLEXPRESS local connection properties --&gt; &lt;property name="hibernate.connection.driver_class"&gt;net.sourceforge.jtds.jdbc.Driver&lt;/property&gt; &lt;property name="dialect"&gt;org.hibernate.dialect.SQLServerDialect&lt;/property&gt; &lt;!--&lt;property name="hibernate.connection.url"&gt;jdbc:jtds:sqlserver://streamer2005.softserveinc.com/_055_OMS;instance=tc;&lt;/property&gt;--&gt; &lt;property name="hibernate.connection.url"&gt;jdbc:jtds:mysql://nazar_art/_056_DB;instance=MYSQL;&lt;/property&gt; &lt;property name="hibernate.connection.username"&gt;root&lt;/property&gt; &lt;property name="hibernate.connection.password"&gt;nazarsql&lt;/property&gt; &lt;!--&lt;property name="hibernate.hbm2ddl.auto"&gt;create&lt;/property&gt;--&gt; &lt;!-- &lt;property name="show_sql"&gt;true&lt;/property&gt; &lt;property name="format_sql"&gt;true&lt;/property&gt; --&gt; &lt;mapping class="com.softserveinc.edu.oms.domain.entities.Role" /&gt; &lt;mapping class="com.softserveinc.edu.oms.domain.entities.Region" /&gt; &lt;mapping class="com.softserveinc.edu.oms.domain.entities.CustomerType" /&gt; &lt;mapping class="com.softserveinc.edu.oms.domain.entities.User" /&gt; &lt;mapping class="com.softserveinc.edu.oms.domain.entities.OrderStatus" /&gt; &lt;mapping class="com.softserveinc.edu.oms.domain.entities.Order" /&gt; &lt;mapping class="com.softserveinc.edu.oms.domain.entities.Product" /&gt; &lt;mapping class="com.softserveinc.edu.oms.domain.entities.Dimension" /&gt; &lt;mapping class="com.softserveinc.edu.oms.domain.entities.OrderItem" /&gt; &lt;mapping class="com.softserveinc.edu.oms.domain.entities.CreditCardType" /&gt; &lt;/session-factory&gt; &lt;/hibernate-configuration&gt; </code></pre> <p>But this doesn't work correctly when I run from maven it failed.<br> How to solve this issue?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload