Exemplo n.º 1
0
        public EmailMapping()
        {
            HibernateMapping.Schema("dbo");
            Table("ReceivedEmails");
            Not.LazyLoad();
            HibernateMapping.DefaultAccess.Property();
            HibernateMapping.DefaultCascade.SaveUpdate();

            //Id(x => x.id).Column("Id").GeneratedBy.Identity().UnsavedValue(0);
            Id(x => x.id).Column("Id").GeneratedBy.GuidComb();
            // message metadata
            Map(x => x.message_id);
            Map(x => x.delivery_date);
            // main message information
            Map(x => x.from_address);
            Map(x => x.to_addresses);
            Map(x => x.cc_addresses);
            Map(x => x.bcc_addresses);
            Map(x => x.priority);
            Map(x => x.subject);
            Map(x => x.message_body);

            //auditing fields
            Map(x => x.entered_date);
            Map(x => x.modified_date);
            Map(x => x.updating_user);
        }
Exemplo n.º 2
0
        public SampleItemMapping()
        {
            HibernateMapping.Schema("dbo");
            Table("SampleItems");
            Not.LazyLoad();
            HibernateMapping.DefaultAccess.Property();
            HibernateMapping.DefaultCascade.SaveUpdate();

            Id(x => x.id).Column("Id").GeneratedBy.Identity().UnsavedValue(0);
            Map(x => x.name);
            Map(x => x.firstname);
            Map(x => x.lastname);
        }
Exemplo n.º 3
0
        public VersionMapping()
        {
            HibernateMapping.Schema(ApplicationParameters.CurrentMappings.roundhouse_schema_name);
            Table(ApplicationParameters.CurrentMappings.version_table_name);
            Not.LazyLoad();
            HibernateMapping.DefaultAccess.Property();
            HibernateMapping.DefaultCascade.SaveUpdate();

            Id(x => x.id).Column("id").GeneratedBy.Identity().UnsavedValue(0);
            Map(x => x.repository_path);
            Map(x => x.version).Length(50);

            //audit
            Map(x => x.entry_date);
            Map(x => x.modified_date);
            Map(x => x.entered_by).Length(50);
        }
        public ScriptsRunMapping()
        {
            HibernateMapping.Schema(ApplicationParameters.CurrentMappings.roundhouse_schema_name);
            Table(ApplicationParameters.CurrentMappings.scripts_run_table_name);
            Not.LazyLoad();
            HibernateMapping.DefaultAccess.Property();
            HibernateMapping.DefaultCascade.SaveUpdate();

            Id(x => x.id).Column("id").GeneratedBy.Identity().UnsavedValue(0);
            Map(x => x.version_id);
            Map(x => x.script_name);
            Map(x => x.text_of_script).CustomType("StringClob").CustomSqlType("text");
            Map(x => x.text_hash).Length(512);
            Map(x => x.one_time_script);

            //audit
            Map(x => x.entry_date);
            Map(x => x.modified_date);
            Map(x => x.entered_by).Length(50);
        }
Exemplo n.º 5
0
        public ScriptsRunErrorMapping()
        {
            HibernateMapping.Schema(ApplicationParameters.CurrentMappings.roundhouse_schema_name);
            Table(ApplicationParameters.CurrentMappings.scripts_run_errors_table_name);
            Not.LazyLoad();
            HibernateMapping.DefaultAccess.Property();
            HibernateMapping.DefaultCascade.SaveUpdate();

            Id(x => x.id).Column("id").GeneratedBy.Identity().UnsavedValue(0);
            Map(x => x.repository_path);
            Map(x => x.version).Length(50);
            Map(x => x.script_name);
            Map(x => x.text_of_script).CustomSqlType("mediumtext");
            Map(x => x.erroneous_part_of_script).CustomSqlType("mediumtext");
            Map(x => x.error_message).CustomSqlType("mediumtext");

            //audit
            Map(x => x.entry_date);
            Map(x => x.modified_date);
            Map(x => x.entered_by).Length(50);
        }