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: Creating a criteria using a iusertype
PostPosted: Tue Feb 10, 2009 11:19 am 
Newbie

Joined: Mon May 28, 2007 10:59 am
Posts: 1
Hi!
I have a class implementing IUserType, and have mapping files using this class.

I can update, insert and delete mapped objects (using my class as datatype on some properties) to SQL Server with no problem.

I can create a criteria (Expression.Eq for example) to do a search with no problem, if and only if, I don't use any property of the kind of my class.

When I create a criteria to do a search using a property of the kind of my class, for exmple Expression.Eq("my_iusertype_column_name", Datetime.Now), I get a type mismatch exception, it expects a my_iusertype when I'm passing a datetime.

How do I solve this? How do I create a new "my_iusertype"?

Regards,
Julio


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.