-->
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: resolving external entities when using SchemaExportTask
PostPosted: Tue Apr 12, 2005 11:13 pm 
Regular
Regular

Joined: Fri Oct 01, 2004 2:19 am
Posts: 111
Location: Melbourne, Australia
Hibernate version: 3.0rc1

How can I configure SchemaExportTask, when run from ant, to allow it
to use some user defined entity resolver classes?

I have a mapping file which includes the Hibernate DTD declaration
followed by an external entity definition, which I later use in the file
by referring to it. Problem is, when run from ant, the file indicated as
the external entity is being searched in the directory where ant was
launched from - it does not matter where I place the file (same directory
of the mapping file, root directory of the class path, etc), the file is not
found.

At runtime, I set the Configuration member with my own entity
resolver which knows where to find the file (this is a crude solution, but
I know of no other solution which will work), but I cannot achieve the
same behaviour when using the SchemaExportTask.

Any ideas?

_________________
Cheers,

Bonny

please don't forget to rate :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 15, 2005 10:02 am 
Regular
Regular

Joined: Fri Oct 01, 2004 2:19 am
Posts: 111
Location: Melbourne, Australia
anyone (from the Hibernate team) knows how to solve this problem?

_________________
Cheers,

Bonny

please 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.