Skip to content

Instantly share code, notes, and snippets.

@sanity
Created March 24, 2012 16:47
Show Gist options
  • Save sanity/f3f7580dcca4f9d28ae8 to your computer and use it in GitHub Desktop.
Save sanity/f3f7580dcca4f9d28ae8 to your computer and use it in GitHub Desktop.
final CampaignsRecord campaignRecord = create.insertInto(Tables.CAMPAIGNS)
.set(Campaigns.ACCOUNT_ID, advertiserRecord.getValueAsInteger(Accounts.ID))
.set(Campaigns.LASTMODIFIED, Factory.currentTimestamp())
.set(Campaigns.NAME, campaignEntity.name)
.set(Campaigns.READ_ONLY, CampaignsReadOnly.yes)
.returning(Campaigns.ID)
.fetchOne();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment