-->
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: Pluggable Metadata in Hibernate
PostPosted: Fri Sep 03, 2004 3:39 pm 
Newbie

Joined: Fri Sep 03, 2004 3:32 pm
Posts: 1
What I want to do with Hibernate is basically replace Java as its static metamodel by my own, dynamic one. However, if I look at the CompositeUserType interface methods such as getPropertyNames() and getPropertyTypes() they imply that implementions (design time) know what the actual schema.

Of course, nobody would change the schema after the database tables were created but I would like to create a generic "bridge" between Hibernate and my own metamodel. And from my limited understandin of Hibernate, that does not seem possible.

I would imagine to see instead something like:
public String[] getPropertyNames(Object type)
{
MyType type = (MyType)type;

return type.getPropertyNames();
}

public Type[] getPropertyTypes(Object type);
{
// similar here
}

so that at I could create a single CompositeUserType that would bridge my metamodel to Hibernate dynamically at runtime. It is up to the application or metamodel framework to garantee that the schema will not change after the database tables were created.

Am I missing something here?

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 03, 2004 7:50 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Sounds like you are looking for the <dynamic-class> functionality in 3.0.


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.