-->
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.  [ 1 post ] 
Author Message
 Post subject: Dynamic collection mapping
PostPosted: Sun Jun 10, 2007 12:22 pm 
Newbie

Joined: Sat Jun 09, 2007 12:29 pm
Posts: 19
Hello,

I was searching for this solution but never found anything close to the answer.

I'd like to use hibernate in case, where there is a class PObject but there is just array of variables, which would need to be stored int the database.

Let say:

class PObject {
String className;
String tableName;
Map variables = new HashMap();
public class PObject() {
super();
}
public getVariableByName(String nameSymbol) {
}
}

The PObject class can be a Person, Address, ... any kind on an object. What I would like is find a way, where hibernate mapping is done automatically.

Any help appreciated.

Best regards,
Bojan Kraut


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.