Created
February 11, 2015 13:22
-
-
Save jnizet/16b057031b561aefefbb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.ninja_squad.dbsetup.operation.Operation; | |
import static com.ninja_squad.dbsetup.Operations.*; | |
public class Foo { | |
public static void main(String[] args) { | |
Operation insertVendorsAndProducts = | |
sequenceOf( | |
insertInto("VENDOR") | |
.columns("ID", "CODE", "NAME") | |
.values(1L, "AMA", "AMAZON") | |
.build(), | |
insertInto("PRODUCT") | |
.columns("ID", "NAME", "VENDOR_ID") | |
.values(1L, "Kindle", "1L") | |
.build(), | |
sql("update VENDOR set FEATURED_PRODUCT_ID = 1 where ID = 1")); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment