Skip to content

Instantly share code, notes, and snippets.

@gscheibel
Created July 23, 2012 18:13
Show Gist options
  • Save gscheibel/3165106 to your computer and use it in GitHub Desktop.
Save gscheibel/3165106 to your computer and use it in GitHub Desktop.
assoc information in _id
{
"_id": {
"bankAccounts_id": "0c9e943e-d77b-44db-b55f-7a8eef451d61"
},
"rows": [{
"table": "AccountOwner_BankAccount",
"columns": {
"owners_id": "05bf8eb9-a20b-459d-bc97-dd370ce36111",
"bankAccounts_id": "0c9e943e-d77b-44db-b55f-7a8eef451d61"
},
"tuple": {
"bankAccounts_id": "0c9e943e-d77b-44db-b55f-7a8eef451d61",
"owners_id": "05bf8eb9-a20b-459d-bc97-dd370ce36111"
}
}]
}
{
"_id": {
"owners_id": "05bf8eb9-a20b-459d-bc97-dd370ce36111"
},
"rows": [{
"table": "AccountOwner_BankAccount",
"columns": {
"owners_id": "05bf8eb9-a20b-459d-bc97-dd370ce36111",
"bankAccounts_id": "0c9e943e-d77b-44db-b55f-7a8eef451d61"
},
"tuple": {
"bankAccounts_id": "0c9e943e-d77b-44db-b55f-7a8eef451d61",
"owners_id": "05bf8eb9-a20b-459d-bc97-dd370ce36111"
}
}]
}
@gscheibel
Copy link
Author

if the filter used by MongoDBDialect is only composed by _id and rows (and I totally agree with that) so why do we need owners_id and bankAccounts_id ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment