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: formula and bitwise operators
PostPosted: Mon Aug 14, 2006 9:49 am 
Newbie

Joined: Wed Mar 29, 2006 2:24 am
Posts: 14
Hibernate version: 1.0.2

Mapping documents:
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0" namespace="" assembly="" default-access="field">
<class name="Movement" table="Movement">
<id name="_id" column="ID">
<generator class="native"/>
</id>
<discriminator column="ParentType" type="String"/>
<property name="_parentID" column="ParentID"/>
<property name="_sequenceNumber" column="SequenceNumber"/>
<property name="OriginServiceArea" column="OriginServiceArea" access="property"/>
<property name="OriginLocation" column="OriginLocation" access="property"/>
<property name="DestinationServiceArea" column="DestinationServiceArea" access="property"/>
<property name="DestinationLocation" column="DestinationLocation" access="property"/>
<property name="LineHaulUpliftMode" column="LineHaulUpliftMode" access="property"/>
<component name="MovementNumber" access="property">
<property name="_movementNumber" column="MovementNumber"/>
</component>
<component name="ValidityDateRange" access="property">
<property name="StartDateDaysFromMinDate" column="ValidityStart" access="property"/>
<property name="EndDateDaysFromMinDate" column="ValidityEnd" access="property"/>
</component>
<component name="STA" access="property">
<property name="MinutesFromMidnight" column="STA" access="property"/>
<property name="DaysOffset" column="STADaysOffset" access="property"/>
</component>
<component name="STD" access="property">
<property name="MinutesFromMidnight" column="STD" access="property"/>
<property name="DaysOffset" column="STDDaysOffset" access="property"/>
</component>
<property name="OperationDays" column="DaysOfOperation" access="property"></property>
<component name="DaysOfOperation" access="property">
<property name="IntRepresentation" column="DaysOfOperation" access="property"/>
</component>
<property name="_networkType" formula="(select NetworkType from NetworkType as n where n.MovementNumber=[MovementNumber] and n.OriginServiceArea=[OriginServiceArea] and n.DestinationServiceArea=[DestinationServiceArea] and (([OperationDays] & DaysOfOperation) > 0))"/>
<subclass name="PlanMovement" discriminator-value="P">
</subclass>
<subclass name="OptionMovement" discriminator-value="O">
</subclass>
</class>
</hibernate-mapping>


is it possible to use bitwise operators for formulas with NHibernate (1.0.2)?

_________________
http://devpinoy.org/blogs/joeycalisay


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.