-->
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: first try
PostPosted: Thu Feb 12, 2009 8:04 pm 
Regular
Regular

Joined: Wed Jan 28, 2009 8:31 pm
Posts: 54
I reading the reference guide.this is my first try with hibernate tool
1)I want to delete my fist
Hibernate Console Configuration
who name is hibernateTool. I don t Know where is it create

2) What do I have to put in my hibernate.properties
this is my
hibernate.cfg
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="factcan">
        <property name="hibernate.connection.driver_class">oracle.jdbc.OracleDriver</property>
        <property name="hibernate.connection.password">factcan</property>
        <property name="hibernate.connection.url">jdbc:oracle:thin:@s1ora01s:1521:s1ora01i</property>
        <property name="hibernate.connection.username">factcan</property>
        <property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property>
    </session-factory>
</hibernate-configuration>



Do dont understand I can t see if I can connect to de dataBase

I what to connect to my dataBase to see my table and generate my hbm et pojo. Like I do with hibernateSynchronizer thank you.

and why it ask me for a hibernate.properties
if I have a hibernate.cfg already


Top
 Profile  
 
 Post subject: Re: first try
PostPosted: Sat Feb 14, 2009 8:25 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
chady wrote:
I reading the reference guide.this is my first try with hibernate tool
1)I want to delete my fist
Hibernate Console Configuration
who name is hibernateTool. I don t Know where is it create


File > New > Hibernate Console Configuration

Quote:
2) What do I have to put in my hibernate.properties
this is my
hibernate.cfg
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="factcan">
        <property name="hibernate.connection.driver_class">oracle.jdbc.OracleDriver</property>
        <property name="hibernate.connection.password">factcan</property>
        <property name="hibernate.connection.url">jdbc:oracle:thin:@s1ora01s:1521:s1ora01i</property>
        <property name="hibernate.connection.username">factcan</property>
        <property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property>
    </session-factory>
</hibernate-configuration>



Do dont understand I can t see if I can connect to de dataBase


Not sure what you mean ? You specified all the properties and it should now be able to connect to the database.

Quote:
I what to connect to my dataBase to see my table and generate my hbm et pojo. Like I do with hibernateSynchronizer thank you.


Run > Hibernate Code generation >

Quote:
and why it ask me for a hibernate.properties
if I have a hibernate.cfg already


It is an optional field, if you don't have it don't specify it.

_________________
Max
Don't forget to rate


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.