-->
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: Object comprised of mulitiple tables
PostPosted: Fri Mar 25, 2011 4:55 pm 
Newbie

Joined: Fri Mar 25, 2011 4:42 pm
Posts: 1
I'm just getting started with hibernate and am looking for an example of using hibernate to model columns from 3 different tables. For example here is my bean.

The fields value, testName, and pwyUrl reside in seperate tables. Does some one have an example of how to use hibernate to read across multiple tables to model an object? It doesn't matter to me if its using annotations or mapping files.

Thanks!
Chris

/**
*
*/
package edu.mayo.CE69.tests.utils;

public class Result
{
private String value,testName,pwyUrl;

public String getValue()
{
return value;
}

public void setValue(String value)
{
this.value = value;
}

public String getTestName()
{
return testName;
}

public void setTestName(String testName)
{
this.testName = testName;
}

public String getPwyUrl()
{
return pwyUrl;
}

public void setPwyUrl(String pwyUrl)
{
this.pwyUrl = pwyUrl;
}
}


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.