mysql/mysql-js

Find by table name incorrectly returns domain object

CraigLRussell opened this issue · 1 comments

If a domain object is mapped to a table, the constructor is stored in the table mapping and then the table mapping incorrectly replaces the existing table mapping for the table name.

The session functions now support table mapping as an explicit parameter that will return "naked" objects from the table using the table mapping.

Also, if table mapping is a parameter of connect or openSession, use of the string table name will also return a "naked" javascript object.