I want to automap an existing view that does not have a primary key. As the database is accessed several times, its put into a function. The view is mirrored and given