Problems with ManyToMany relations in Squeryl-Record
ManyToMany relations only work partly in Squeryl-Record at the moment.
The relation table has to be a record and Squeryl's convenience functions for creating relations do not work.
It would be easier if normal POSOs could be used for the relation table. Then, the convenience functions would work automatically.
This does not work at the moment because RecordTypeMode assumes that all mapped classes are of type Record.
The relation table has to be a record and Squeryl's convenience functions for creating relations do not work.
It would be easier if normal POSOs could be used for the relation table. Then, the convenience functions would work automatically.
This does not work at the moment because RecordTypeMode assumes that all mapped classes are of type Record.
Leave a comment
on 2011-01-27 15:02 *
By Anonymous
Status changed from Accepted to Fixed
Work remaining changed from 1.0 to 0.0
(In revision:09038652c7ec322c85796daa4fd0ba7145796451) Fixed ManyToMany relations and outer joins in Squeryl-Record
Closes #869
Closes #870
ManyToMany relations can now be expressed with relation tables of POSO objects.
For relation tables, no record should be needed. It is now also possible to mix
records and POSOs for tables belonging to one project.
For outer joins, implicit conversions of Option[TypedField[T]] to
NumericalExpression[Option[T]]/NonNumericalExpression[T] were added.
Unit tests now include test cases for ManyToMany relations and outer joins.
Branch: master
Closes #869
Closes #870
ManyToMany relations can now be expressed with relation tables of POSO objects.
For relation tables, no record should be needed. It is now also possible to mix
records and POSOs for tables belonging to one project.
For outer joins, implicit conversions of Option[TypedField[T]] to
NumericalExpression[Option[T]]/NonNumericalExpression[T] were added.
Unit tests now include test cases for ManyToMany relations and outer joins.
Branch: master