This is a simple mechanism of providing a pre-defined set of FOREIGN KEY constraints.
The available values currently follow the MySQL syntax definition available http://dev.mysql.com/doc/refman/5.6/en/create-table-foreign-keys.html.
What follows below is actually the implementation of an Enumeration, however scala.util.Enum is not proffered in situations like this,
or ever for that matter. The API is poor and weird compared to using a simple set of case object definitions.
This is a simple mechanism of providing a pre-defined set of FOREIGN KEY constraints. The available values currently follow the MySQL syntax definition available
http://dev.mysql.com/doc/refman/5.6/en/create-table-foreign-keys.html
.What follows below is actually the implementation of an Enumeration, however
scala.util.Enum
is not proffered in situations like this, or ever for that matter. The API is poor and weird compared to using a simple set ofcase object
definitions.