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: Does a custom exporter inherit from ExporterTask?
PostPosted: Tue Dec 18, 2007 10:20 am 
Beginner
Beginner

Joined: Mon Jul 23, 2007 12:37 pm
Posts: 24
Hi,

I want to write my own Exporter class, but when I try to inherit from org.hibernate.tool.ant.ExporterTask, I have the problem that I have to override the abstract method getName which I can't do since it is not visible (declared as friendly).
How should I proceed?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 18, 2007 12:21 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
report in jira...

but going one step back - why do you want to have a custom ant exporter task ? That should not be necessary for 99% of the usecases I know ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 19, 2007 6:30 am 
Beginner
Beginner

Joined: Mon Jul 23, 2007 12:37 pm
Posts: 24
I want to generate Hibernate mapping files from mapping information that is contained programmatically in a self written persistence layer. So it's a very special task that can't be done with the common features of Hibernate Tools. The reference has a section where you are encouraged to write your own custom exporter. I'd like to inherit from ExporterTask as I think that I can use a lot of it's functionality.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 19, 2007 11:20 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
peterm wrote:
I want to generate Hibernate mapping files from mapping information that is contained programmatically in a self written persistence layer.


ok

Quote:
So it's a very special task that can't be done with the common features of Hibernate Tools. The reference has a section where you are encouraged to write your own custom exporter.


sure - but adding a custom ant section per exporter was not actually the intention (only in rare cases)

Quote:
I'd like to inherit from ExporterTask as I think that I can use a lot of it's functionality.


I'm still missing why <hbmtemplate> is not enough for you.

In any case the exporterTask should be fixed so please open it in jira. thanks.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 19, 2007 12:11 pm 
Beginner
Beginner

Joined: Mon Jul 23, 2007 12:37 pm
Posts: 24
Quote:
I'm still missing why <hbmtemplate> is not enough for you.
[/quote]
I haven't yet tried to use <hbmtemplate>, I'll try now if it'll do what I need.
Quote:
In any case the exporterTask should be fixed so please open it in jira. thanks.

Jira: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1026


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.