-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate Code Generation with SQLExpress
PostPosted: Thu Apr 19, 2007 1:25 am 
Newbie

Joined: Wed Oct 25, 2006 8:28 am
Posts: 11
Hi all,
I am trying to reverse engineering by business objects from SQLExpress Database found on a remote host.

I have the following configs :

hibernate.cfg.xml

Code:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
      "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
      "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
    <session-factory name="ForecastingSessionFactory">
        <property name="hibernate.connection.driver_class">com.microsoft.sqlserver.jdbc.SQLServerDriver</property>
        <property name="hibernate.connection.url">jdbc:sqlserver://192.168.2.35\\sqlexpress</property>
        <property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
        <property name="hibernate.default_schema">ForecastingAndIventoryV2</property>
        <property name="hibernate.connection.password">sa</property>       
        <property name="hibernate.connection.username">mypassword</property>
    </session-factory>
</hibernate-configuration>




I also created a console config where I added the sqljdbc.jar in the classpath


But when i try to look for the tables found in the database using the design view for hibernate.reveng.xml it cannot fetch any !!

I tested my connection to the remote SQLExpress server via a plain JDBC connection and it works.

Can anyone help me out with this


Cheers,
Jankee Yogesh
Software Developer
http://www.m-itc.net


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 19, 2007 8:14 am 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
You stand a better chance of getting this answered in the Hibernate Tools forum.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.