-->
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.  [ 5 posts ] 
Author Message
 Post subject: MiddleGen-Hibernate-r5, Excep: Wow! Synonym EVENT not found.
PostPosted: Sat Jul 24, 2004 3:01 am 
Beginner
Beginner

Joined: Tue Apr 06, 2004 6:13 pm
Posts: 39
Location: Pune, Maharashtra, INDIA
Hi,

I used MiddleGen 2 before this. (configured it to use my Oracle DB)

but MiddleGen just created a lot of things I did not need.

It created EJB, JDO, Struts action, objects.

I am only interested in getting .java classes for my tables retaining the Xdoclet tags.

Was advised to use MiddleGen-Hibernate-r5.

But that gives me the exception:

Quote:
D:\Middlegen-Hibernate-r5>ant
Buildfile: build.xml

init:

fail-if-no-xdoclet-1.2:

check-driver-present:

panic-if-driver-not-present:

middlegen:
[echo] Class path = D:\Middlegen-Hibernate-r5
[middlegen] Database URL:jdbc:oracle:thin:@pth-pc0440:1521:FISERV
[middlegen] (middlegen.MiddlegenPopulator 1020) WARNING: The JDBC driver didn't report any primary key columns in TB_INSTITUTION_AUDIT
[middlegen] (middlegen.MiddlegenPopulator 1020) WARNING: The JDBC driver didn't report any primary key columns in TB_APPLICATION_AUDIT
[middlegen] (middlegen.MiddlegenPopulator 1020) WARNING: The JDBC driver didn't report any primary key columns in TB_PRODUCT_AUDIT

BUILD FAILED
file:D:/Middlegen-Hibernate-r5/build.xml:145: middlegen.MiddlegenException: Wow! Synonym EVENT not found. How can it happen?
Configured schema:CMDEV
Configured catalog:null
Available schemas:
ANIRUDDHA
AURORA$JIS$UTILITY$
AURORA$ORB$UNAUTHENTICATED
CMDEV
CMINTEGRATE
CTXSYS
DBSNMP
HR
JEEVAN
KRISHANKANT
MANOJD
MDSYS
MILIND
MONIKA
NARENDRA
OE
OLAPDBA
OLAPSVR
OLAPSYS
ORDPLUGINS
ORDSYS
OSE$HTTP$ADMIN
OUTLN
PM
PRAFUL
QS
QS_ADM
QS_CB
QS_CBADM
QS_CS
QS_ES
QS_OS
QS_WS
RAHUL
RMAN
SCOTT
SH
SHANTANU
SHRINIVAS
SYS
SYSTEM
TESTUSER
WKSYS
Available catalogs:

Total time: 4 seconds
D:\Middlegen-Hibernate-r5>


Any clues ?

_________________
thks
G1


Top
 Profile  
 
 Post subject: Solved!
PostPosted: Sat Jul 24, 2004 4:17 am 
Beginner
Beginner

Joined: Tue Apr 06, 2004 6:13 pm
Posts: 39
Location: Pune, Maharashtra, INDIA
Found the culprit.

The Synonym not found error when I replaced the middlegen-2.1.jar in the \middlegen-lib directory of r5 with middlegen-2.0-vo.jar (which I got from the 'complete' MiddleGen-2.0 release)

Another error exists in the r5 build.xml, task hbm2java

The <hbm2java...> task has attributes
Code:
genXDocletTags="true"

Code:
genIntergratedCompositeKeys="true"


Which at runtime are reported as not-supported.

Removal the script rin ok.


PS: I do not know much of ANT scripting. I can only tinker with a script.
So do not know what I have done is correct or wrong.

_________________
thks
G1


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 26, 2004 4:11 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I looked at the ant script and I did not see the issue.
Anyway, I'm glad you have sorted your problems out.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 26, 2004 4:37 am 
Beginner
Beginner

Joined: Tue Apr 06, 2004 6:13 pm
Posts: 39
Location: Pune, Maharashtra, INDIA
How about the Synoymn problem ?

Is it really due to the middlegen-2.1.jar in the Middlegen-Hibernate-r5 release.

PS: Will appreciate a link into the Midlegen documentation which gives an overview / covers - The velocity scripts used in the POJO generation in particular. I want to edit them!

_________________
thks
G1


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 26, 2004 6:26 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Middlegen2.1 jar is a beta but it should be stable. If you can create a simple DDL script that can show the error then I can try and find the problem.

The middlegen hibernate plugin currently has one velocity script. It is called hibernate.vm and you will find it in the jar file. It is standard velocity script where I have tried to minimise the complexity within the script itself (but having said that it is starting to get much larger than I had imagined when I started this sometime ago).


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