I'm trying to set up a DB and some insert statements to get my data into said DB. The problem I'm having is in getting the customer data into the proper tables, when they have a belongs-to relationship. Do I explicitly stick the ID of the `customer` in the `phone-number` or `address` insert statements? Or is there some spiffy way to do it?
Basically: (let [id (insert db/customers (values { ...stuff... }))] (insert db/phone-number (values { ... :customer_id id }))) or is there another way? Justin p.s. the reason why phone-number is in it's own table is b/c a customer may have more than one phone number: work, home, cell, spouse's cell, etc... -- This email is protected under the Fourth Amendment of the United States of America, the text of which states: "The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no Warrants shall issue, but upon probable cause, supported by Oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized." This email is one of my "effects" and my "effects" shall be secure "against unreasonable searches and seizures". Collecting this email - seizing it - or gathering data or metadata on this email - searching it - is prohibited by the Constitution of the United States of America unless you have a Warrant, issued with "probable cause, supported by Oath or affirmation" and "particularly describing the place to be searched, and the persons or things to be seized". --- CFO: “What happens if we train people and they leave?” CTO: “What if we don’t and they stay?” -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.