Packages

package nested

Source
package.scala
Linear Supertypes
AnyRef, Any
Content Hierarchy

Type Members

  1. trait Nested extends AnyRef

    Add nested molecule.

    Add nested molecule.

    Related data of cardinality-many referenced entities can be queried in a "flat" way:

    m(Order.no.LineItem.product.price.quantity).get === List(
      (23, "Chocolate", 48.00, 1),
      (23, "Whisky", 38.00, 2)
    )

    For convenience, Molecule offers to automatically nest the same data so that redundancy is avoided and we can work straight on the hierarchical data:

    m(Order.no * LineItem.product.price.quantity).get === List(
      (23, List(("Chocolate", 48.00, 1), ("Whisky", 38.00, 2)))
    )

    Nested molecules can nest up to 7 levels deep.

    Internally, Molecule adds entity ids to each level in the query to be able to group data on each level by a unique entity id.

    See also

    Manual | Tests: nested, nested json, nested json types

  2. trait Nested00[Ns1[_], In1_1[_, _], In2_1[_, _, _], In3_1[_, _, _, _]] extends Nested
  3. trait Nested01[Ns2[_, _], In1_2[_, _, _], In2_2[_, _, _, _], In3_2[_, _, _, _, _], A] extends Nested
  4. trait Nested02[Ns3[_, _, _], In1_3[_, _, _, _], In2_3[_, _, _, _, _], In3_3[_, _, _, _, _, _], A, B] extends Nested
  5. trait Nested03[Ns4[_, _, _, _], In1_4[_, _, _, _, _], In2_4[_, _, _, _, _, _], In3_4[_, _, _, _, _, _, _], A, B, C] extends Nested
  6. trait Nested04[Ns5[_, _, _, _, _], In1_5[_, _, _, _, _, _], In2_5[_, _, _, _, _, _, _], In3_5[_, _, _, _, _, _, _, _], A, B, C, D] extends Nested
  7. trait Nested05[Ns6[_, _, _, _, _, _], In1_6[_, _, _, _, _, _, _], In2_6[_, _, _, _, _, _, _, _], In3_6[_, _, _, _, _, _, _, _, _], A, B, C, D, E] extends Nested
  8. trait Nested06[Ns7[_, _, _, _, _, _, _], In1_7[_, _, _, _, _, _, _, _], In2_7[_, _, _, _, _, _, _, _, _], In3_7[_, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F] extends Nested
  9. trait Nested07[Ns8[_, _, _, _, _, _, _, _], In1_8[_, _, _, _, _, _, _, _, _], In2_8[_, _, _, _, _, _, _, _, _, _], In3_8[_, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G] extends Nested
  10. trait Nested08[Ns9[_, _, _, _, _, _, _, _, _], In1_9[_, _, _, _, _, _, _, _, _, _], In2_9[_, _, _, _, _, _, _, _, _, _, _], In3_9[_, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H] extends Nested
  11. trait Nested09[Ns10[_, _, _, _, _, _, _, _, _, _], In1_10[_, _, _, _, _, _, _, _, _, _, _], In2_10[_, _, _, _, _, _, _, _, _, _, _, _], In3_10[_, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I] extends Nested
  12. trait Nested10[Ns11[_, _, _, _, _, _, _, _, _, _, _], In1_11[_, _, _, _, _, _, _, _, _, _, _, _], In2_11[_, _, _, _, _, _, _, _, _, _, _, _, _], In3_11[_, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J] extends Nested
  13. trait Nested11[Ns12[_, _, _, _, _, _, _, _, _, _, _, _], In1_12[_, _, _, _, _, _, _, _, _, _, _, _, _], In2_12[_, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_12[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K] extends Nested
  14. trait Nested12[Ns13[_, _, _, _, _, _, _, _, _, _, _, _, _], In1_13[_, _, _, _, _, _, _, _, _, _, _, _, _, _], In2_13[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_13[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L] extends Nested
  15. trait Nested13[Ns14[_, _, _, _, _, _, _, _, _, _, _, _, _, _], In1_14[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In2_14[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_14[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M] extends Nested
  16. trait Nested14[Ns15[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In1_15[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In2_15[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_15[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N] extends Nested
  17. trait Nested15[Ns16[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In1_16[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In2_16[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_16[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O] extends Nested
  18. trait Nested16[Ns17[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In1_17[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In2_17[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_17[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P] extends Nested
  19. trait Nested17[Ns18[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In1_18[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In2_18[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_18[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q] extends Nested
  20. trait Nested18[Ns19[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In1_19[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In2_19[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_19[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R] extends Nested
  21. trait Nested19[Ns20[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In1_20[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In2_20[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_20[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S] extends Nested
  22. trait Nested20[Ns21[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In1_21[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In2_21[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_21[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T] extends Nested
  23. trait Nested21[Ns22[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In1_22[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In2_22[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_22[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U] extends Nested

Inherited from AnyRef

Inherited from Any

Ungrouped