{"action":"created","issue":{"url":"https://api.github.com/repos/FluentNHibernate/fluent-nhibernate/issues/360","repository_url":"https://api.github.com/repos/FluentNHibernate/fluent-nhibernate","labels_url":"https://api.github.com/repos/FluentNHibernate/fluent-nhibernate/issues/360/labels{/name}","comments_url":"https://api.github.com/repos/FluentNHibernate/fluent-nhibernate/issues/360/comments","events_url":"https://api.github.com/repos/FluentNHibernate/fluent-nhibernate/issues/360/events","html_url":"https://github.com/FluentNHibernate/fluent-nhibernate/issues/360","id":178351193,"node_id":"MDU6SXNzdWUxNzgzNTExOTM=","number":360,"title":"Manually set ID sometimes and allow for generated at others","user":{"login":"yoshidahiro","id":2627719,"node_id":"MDQ6VXNlcjI2Mjc3MTk=","avatar_url":"https://avatars0.githubusercontent.com/u/2627719?v=4","gravatar_id":"","url":"https://api.github.com/users/yoshidahiro","html_url":"https://github.com/yoshidahiro","followers_url":"https://api.github.com/users/yoshidahiro/followers","following_url":"https://api.github.com/users/yoshidahiro/following{/other_user}","gists_url":"https://api.github.com/users/yoshidahiro/gists{/gist_id}","starred_url":"https://api.github.com/users/yoshidahiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoshidahiro/subscriptions","organizations_url":"https://api.github.com/users/yoshidahiro/orgs","repos_url":"https://api.github.com/users/yoshidahiro/repos","events_url":"https://api.github.com/users/yoshidahiro/events{/privacy}","received_events_url":"https://api.github.com/users/yoshidahiro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-21T13:44:49Z","updated_at":"2018-06-22T07:18:40Z","closed_at":null,"author_association":"NONE","body":"We have table that has its ID?PK generated by a trigger\nId(x => x.Cable_RL_ID).GeneratedBy.Sequence(\"S_CABLE_RL_ID\")\nthe trigger is here\nBEGIN\n   if :NEW.cable_rl_id is NULL then\n      :NEW.cable_rl_id := s_cable_rl_id.nextval;\n   end if;\n END\n\nI know if I use the following to manually set the id\n Id(x => x.Cable_RL_ID).GeneratedBy.Assigned();\n\nHowever the problem arises that we are converting data over from an older system\nwe wanted the newer data to be generated by the sequence and the older data to be manually set\n\nis there anyway to accommodate this?\n"},"comment":{"url":"https://api.github.com/repos/FluentNHibernate/fluent-nhibernate/issues/comments/399346337","html_url":"https://github.com/FluentNHibernate/fluent-nhibernate/issues/360#issuecomment-399346337","issue_url":"https://api.github.com/repos/FluentNHibernate/fluent-nhibernate/issues/360","id":399346337,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTM0NjMzNw==","user":{"login":"jlscpns","id":2098107,"node_id":"MDQ6VXNlcjIwOTgxMDc=","avatar_url":"https://avatars0.githubusercontent.com/u/2098107?v=4","gravatar_id":"","url":"https://api.github.com/users/jlscpns","html_url":"https://github.com/jlscpns","followers_url":"https://api.github.com/users/jlscpns/followers","following_url":"https://api.github.com/users/jlscpns/following{/other_user}","gists_url":"https://api.github.com/users/jlscpns/gists{/gist_id}","starred_url":"https://api.github.com/users/jlscpns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlscpns/subscriptions","organizations_url":"https://api.github.com/users/jlscpns/orgs","repos_url":"https://api.github.com/users/jlscpns/repos","events_url":"https://api.github.com/users/jlscpns/events{/privacy}","received_events_url":"https://api.github.com/users/jlscpns/received_events","type":"User","site_admin":false},"created_at":"2018-06-22T07:18:40Z","updated_at":"2018-06-22T07:18:40Z","author_association":"NONE","body":"Rather than solving this on Fluent NH side, an overload of ISession.Save is the way to go."}}
{"actor":{"display_login":"jlscpns"}}