-->
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 apply database specific arguments by Annotation?
PostPosted: Mon Apr 09, 2007 4:42 am 
Newbie

Joined: Mon Apr 09, 2007 4:24 am
Posts: 4
I'm using MySQL 5 with MyISAM engine to persisting POJO. Now I would like to assign MySQL specific table creation options to create tables (namely the [b]DATA DIRECTORY [/b]and [b]INDEX DIRECTORY [/b]options) by Hibernate Annotation.

But I can't find any solution for that, can anybody teaching me how to do that ?


[b]Hibernate version:3.2, Annotation:3.3[/b]

[b]Name and version of the database you are using:MySQL 5.0.x[/b]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 5:19 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
you'll need to generate the DDL file and change it manually

_________________
Emmanuel


Top
 Profile  
 
 Post subject: A suggest for such facility.
PostPosted: Thu Apr 12, 2007 11:04 pm 
Newbie

Joined: Mon Apr 09, 2007 4:24 am
Posts: 4
I realize that passing database specific option from Hibernate to database engin is not included in current release. But how about add a parameter into @Entity annotation while mapping a class to table for including such options concatenated to the end of the table creation statement ? Of course user who use this facility takes the risk by himself.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 2:24 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Sounds hacky to me and specific to MySQL

_________________
Emmanuel


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.