-->
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.  [ 14 posts ] 
Author Message
 Post subject: Problem using Middlegen with oracle
PostPosted: Wed Mar 23, 2005 1:39 am 
Newbie

Joined: Wed Mar 23, 2005 1:24 am
Posts: 12
Hi

Iam using hibernate for almost 6 months .
just offlate in Hibernate in action i found out that the hbm.xml files and
code can be generated for faster development life cycle of a project

Iam have been usign middlegen for generating the hbm.xml files it works fine with Mysql database it displays the tables in that particular database iam trying to connect via ant task

But to my surprise iam not able to connect to oracle it does not identify the tables in it..is thr iam doign something wrong well but for MySql it works fine

I opted for hibernate for not having dependency to any particular databse so that on fly i can switch to any database. Our company is developing a tool in BPMS space which is very unique we are trying a POC for integrating it with hibernate layer is thr any way i can use middlegen also with oracle or has this facility not been given for oracle

Your reply wud be highly appreciated

_________________
Regards
Karthik


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 8:57 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
It works fine with Oracle (many use it this way). Your connection string much not be correct. For example, you may not have schema filled in.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 11:12 pm 
Newbie

Joined: Wed Mar 23, 2005 1:24 am
Posts: 12
Thanks a lot david then there is something iam doing wrogn let me try to correct it and work ahead

Once again thanx a lot for your quick reply i appreciate it a lot

One more Doubt when will be hibernate console get ready since the current version just blinks and goes away iam not sure y


Regds
Karthik

_________________
Regards
Karthik


Top
 Profile  
 
 Post subject: Oracle problem still persists dunno Y check and let me know
PostPosted: Wed Mar 23, 2005 11:33 pm 
Newbie

Joined: Wed Mar 23, 2005 1:24 am
Posts: 12
BUILD FAILED
C:\110294\Hibernate\build.xml:38: middlegen.MiddlegenException: Middlegen successfully connected to
atabase, but couldn't find any tables. Perhaps the specified schema or catalog is wrong? -Or maybe
aren't any tables in the database at all?
Configured schema:
Configured catalog:null
Available schemas:
ANONYMOUS
AOL
AOL_TEST
BCP1
BCP_CONS
BCP_UNCONS
BEA
BEANEW
BNKMCT
BPC
BPC_DATA
BPC_TEST
CMS
CSEPF_LIVE
CSEPF_TEST
CTM
CTXSYS
DBSNMP
DOTCOM_NEW
EBPAC
EBPAC_ENGINE
EBPAC_IIMS
EBPAC_IMPORT
EBPAC_REMOTE
EBPAC_TCARE
FINUSER
FINUSER1
FPMS_CSEPF
FPMS_NIFCOLIVE
FPMS_SGRFLIVE
GIT
IBS_FINAL
IIB
IIMS_PROD
ISMP
IT
MDSYS
MHEW
NIFCO
NIFCOGL
NIFCO_ODC_ADD
OIFC
ORAAPPS
ORDPLUGINS
ORDSYS
OUTLN
PASI
PDO
PFA
REPOWN
SANADPAY
SGRF
SPEEDTRANS
SYS
SYSTEM
TEST
TEST123
TOAD
TODM
TOLATEST
TOPAYROLL
TRA_HRMS
TSMSNEW
VIDEO5
WMSYS
XDB
Available catalogs:

-------------------------------------------------------------------------------------

the ant target ..............

<target name="HBMS" description="Generates the hbm.xml files from the existing database">
<taskdef name="middlegen"
classname="middlegen.MiddlegenTask"
classpathref="class.path"/>
<middlegen appname="Hib"
prefsdir="C:/110294/Hibernate/source/conf"
gui="true"
databaseurl="jdbc:oracle:thin:@172.16.0.2:1521:dbserv"
driver="oracle.jdbc.driver.OracleDriver"
username="bpc"
password="bcp"
>
<hibernate destination="C:/110294/Hibernate/source"
package="com.session"/>
</middlegen>
</target>


the same connection string when i use it via the jdbc connection it works fine iam able to connect to database what might be the problem with it as such

can anyone show me light on this issue

_________________
Regards
Karthik


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 24, 2005 7:52 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Have you tried setting a schema name in addition to the base connection information. Thats what the error message is saying to you. Give it a try.


Top
 Profile  
 
 Post subject: Problem got solved
PostPosted: Mon Apr 04, 2005 6:25 am 
Newbie

Joined: Wed Mar 23, 2005 1:24 am
Posts: 12
The problem was my administrator did not give access for me to accesss it so it was not working for me

Thanks a lot david sorry for late response man

I need a clarification on console thats has been developed on hibernate it just blinks and goes off why is it so is it not stable yet or am i doing something wrong

Regds
Karthik

_________________
Regards
Karthik


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 04, 2005 7:43 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
look in the Error Log view....you might just have a simple configuration error or maybe you are using a too old version of eclipse.

with alpha 1 you need 3.1M4
with alpha 2 its 3.1M5
(and when alpha 3 gets out it will be 3.1M6 ...you just gotta love living on the "adapt to new on-the-edge IDE api's") .)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Hibernate Console 2.1
PostPosted: Mon Apr 04, 2005 8:17 am 
Newbie

Joined: Wed Mar 23, 2005 1:24 am
Posts: 12
Hi max i was not talking abt the hibernate-eclipse plugin

i was referring to hibernate console 2.1 which was before named as Hiber8ide

can u tell me how can i use it because iam trying to plugin hibernate into my Business Process Management System it is seperate domain by itself

i will have to connect to any database and dynamically i shld be generating the hbm file which can be done with hbmtoolset provided by you and generation of java files is also possible and i need to set it to classpath is thr a way hibernate.cfg.xml file can be set to classpath at runtime rather than at compile time itself

one more thing hibernate console 2.1 is seen by me it says

goodies value set to true on then it just goes off can u tell me the reason

am i having ambiguity in hibernate console as seperate console or is it eclipse plugin thats been named hibernate console

_________________
Regards
Karthik


Top
 Profile  
 
 Post subject: Hibernate console 2.1
PostPosted: Mon Apr 04, 2005 8:21 am 
Newbie

Joined: Wed Mar 23, 2005 1:24 am
Posts: 12
console:
[java] JGoodies Looks: The ClearLook(tm) mode has been set to 'On'.

this is wat i get then it says

it goes off it shows the console and it goes off without any response or error code can u tell me wats the reason

_________________
Regards
Karthik


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 04, 2005 8:37 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
I have a hard time following you...

#1 I would check if you have included all the needed libraries ?

#2 you can use the startWith(cfg); to start from a Hibernate Configuration

#3 Hibernate Console 2.1 is a pure swing application and for Hibernate 2.
Hibernate Console 3 is a eclipse plugin and for Hibernate 3.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Hibernate console 2.1
PostPosted: Mon Apr 04, 2005 8:41 am 
Newbie

Joined: Wed Mar 23, 2005 1:24 am
Posts: 12
Hi max sorry for confusing you

I was just curious if there is going to be any release of a pure swing application like Hibernate console 2.1 for hibernate3.0 release too is it going to be released soon

Hibernate Console 2.1 thats a pure swing application thats wat i was talking about

Iam interested on hibernate pure swing application is thr anyways that support is going to be available for hibernate3.0 libraries too

_________________
Regards
Karthik


Top
 Profile  
 
 Post subject: Hibernate Console 2.1
PostPosted: Mon Apr 04, 2005 8:50 am 
Newbie

Joined: Wed Mar 23, 2005 1:24 am
Posts: 12
Iam not able to run the swing application that was given as a library in Hibernate2 release


I was just trying to debug that swing application which just blinks off dunno wat is the reason for it may be iam having Hibernate3 release but running Hibernate console 2.1 on the libraries given for Hibernate 3 release

Iam not able to run Hibernate Console 2.1 it just blinks off it stops can u tell me wat is the reason for it

C:\110294\Hibernate>ant -f console.xml
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.5.0\lib\tools.jar
Buildfile: console.xml

console:
[java] JGoodies Looks: The ClearLook(tm) mode has been set to 'On'.

BUILD SUCCESSFUL
Total time: 2 seconds

immediately build successful is coming

1.the swing console just goes off wat is the reason
2.Is there going to be a next hibernate extension release adaptable to Hibernate3 release

_________________
Regards
Karthik


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 04, 2005 8:58 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the swing console code is defunt at the moment and is not planned to be relived right now - if someone wants to step and enable the code again we will welcome that.

hibernate console 2.1 works wiht h2 only and hibernate console 3 works with h3 only.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Thanks a lot for information
PostPosted: Mon Apr 04, 2005 9:02 am 
Newbie

Joined: Wed Mar 23, 2005 1:24 am
Posts: 12
Hi Max

Thanks a lot for the information i shall try at my end to do something on hibernate swing for hibernate 3

Sorry for troubling you so long

Thanks a lot once again

_________________
Regards
Karthik


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 14 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.