-->
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: What will be table and mapping file
PostPosted: Mon Jan 18, 2010 9:46 am 
Newbie

Joined: Mon Jan 18, 2010 9:34 am
Posts: 1
Hi i have following clsaaess
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
public class NStud
{
public int Id { get; set; }
public string Name { get; set; }
public string Reference { get; set; }
public NAddress Address { get; set; }

}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace Model
{
public class NAddress
{
public int Id { get; set; }
public string Address { get; set; }
public string Email { get; set; }
public String Reference { get; set; }


}
}

what will be tables and mapping file.
thanks


Top
 Profile  
 
 Post subject: Re: What will be table and mapping file
PostPosted: Mon Jan 18, 2010 10:28 am 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
One column per Serializable/primitive Java property, for the most part.

Annotate the class, and run it through a schema export, and hibernte will generate the table generation files for you. My signature links have some info on doing just that!

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


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.