﻿using FluentNHibernate.Mapping;
using Poseidon.Domain.Pms.Model;

namespace Poseidon.Domain.Pms.Hibernate.Maps
{
    public class SalesFamilyMap : ClassMap<SalesFamily>
    {
        public SalesFamilyMap()
        {
            Id(d => d.Id).GeneratedBy.HiLo("10");

            Map(d => d.Name).Length(40);
            References(d => d.SalesFamilyGroup).Not.Nullable();

            Version(d => d.Version);
        }
    }
}