-->
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.  [ 4 posts ] 
Author Message
 Post subject: Can´t extends CharBooleanType
PostPosted: Thu Feb 02, 2006 1:44 pm 
Newbie

Joined: Wed Feb 01, 2006 3:44 pm
Posts: 2
I´m trying to extends CharBooleanType to enable S/N chars as True/False but I get a compiler error:
The type 'NHibernate.Type.CharBooleanType' has no constructors defined

But my code is exactly the same as TruFalseType.cs and YesNoType.cs.
My NHibernate version is 1.0.2.0


using NHibernate.SqlTypes;

namespace NHibernate.Type
{
public class SNType : CharBooleanType
{
/// <summary></summary>
internal SNType()
: base(new AnsiStringFixedLengthSqlType(1))
{
}

/// <summary></summary>
protected override sealed string TrueString
{
get { return "S"; }
}

/// <summary></summary>
protected override sealed string FalseString
{
get { return "N"; }
}

/// <summary></summary>
public override string Name
{
get { return "SN"; }
}
}
}


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 03, 2006 4:59 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Yes, its constructors are internal. Can you implement IUserType instead?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 03, 2006 6:18 am 
Newbie

Joined: Wed Feb 01, 2006 3:44 pm
Posts: 2
It´s Internal, I see now. :(

Any reason to do this?

Make it public would make our life easier and no BC.

Where can I suggest this to NHibernate team?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 03, 2006 11:03 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Yes I think we could make them public. JIRA (http://jira.nhibernate.org) is the place for such suggestions.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.