-->
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: Mapping a property ( class object )
PostPosted: Sat Nov 06, 2010 3:03 pm 
Newbie

Joined: Sat Nov 06, 2010 2:58 pm
Posts: 2
Hello , I am not sure how to write this but I need to write a mapping xml file for a class this is my class definition :
public class Mail : IMail
{
public int ID
{
get;
set;
}

public IStatus MessageStatus
{
get;
set;
}
}


ISTATUS is an interface inherting from IDomain , and there is a class called status inherting class domain implemeting inteface Idomain

public class Domain : IDomain, IUserType
{

#region IDomain
#region ID
public int ID
{
get;
set;
}
#endregion

#region Name
public string Name
{
get;
set;
}
#endregion

#region ParentId
public int ParentId
{
get;
set;
}
#endregion
#endregion
}

so I'll be now having a mail class with the property IStatus , It'll be set to an enum or integer value , I made a little search and I found that there is an interface called iusertype i shall implement for class ( domain ) , is that right or what ?


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.