-->
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.  [ 4 posts ] 
Author Message
 Post subject: How to store meta data tags within the database
PostPosted: Wed Sep 13, 2006 7:45 am 
Newbie

Joined: Thu Aug 24, 2006 11:10 am
Posts: 16
Hi,
I'm using hibernate Tools 3.2.0 Beta 6
and doing reverse engineering against Sybase ASE 12x.

Currently I do start generate all *.hbm.xml files by using
Ant + jdbcconfiguration, next is extending the hbm files with
"meta tags" and last but not least call hbm2java to create the
Java files.

Now I want to place the meta tag extentions, which I create
manually each time after regenerating the whole thing,
in the database. Is this possible? If so how to?

Within the documentation I saw a very small capture about
"5.4 Custom Database Metadata" but I've no idea how to use
this and on which table(s) I have to insert custom meta data tags.

Any help/example is welcome.

Best
etanrebih


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 13, 2006 7:59 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the only way to 'persist' the meta tags currently is in the templates.

i will (at some point) add support for specifying meta attributes in reveng.xml

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 13, 2006 10:32 am 
Newbie

Joined: Thu Aug 24, 2006 11:10 am
Posts: 16
Thanks for you answer Max,
but what is the chapter

5.4. Custom Database Metadata

in the tools documentation about?

Am I able to store Metadata e.g. key/value pairs etc.
within the database that I can access later on in a
custom templates?

If so how to do this because this is something that would help
me a lot.


Best
etanrebih

P.S. Regarding extend reveng.xml to store meta data would be a nice solution, but why not storing everything in the database? Would be much more flexible from my point of view!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 13, 2006 12:35 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
its about reading database metadata, not about ORM metadata.

Its so you can implement an alternative to getting data from jdbc metadata.

And if you want to store extra stuff in the database (e.g. all of reveng.xml) then you can do that by implementing a ReverseEngineeringStrategy that get stuff from the database.

...but remember that then you will need to exclude the tables that is about reverse engineering ;)

btw. i would much rather prefer to have reveng.xml versioned in source control system than in the database - but that is just me ;)

If you implement a reverseeng strategy that can get stuff in the database (and somehow can put it in there too - have you thought about that part ?) then contribute 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.  [ 4 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.