Support for GetObject in multiple classes when pulling from database

6 views
Skip to first unread message

Joe

unread,
Jun 21, 2013, 2:41:54 AM6/21/13
to variman...@googlegroups.com
Before I pour time into implementing this additional functionality, I wanted to post to make sure I haven't missed something.

It appears that when variman is configured to load object set information from the database that it only supports multiple resources if the identifier is unique.  

I configured my metadata to provide a photo Object for Property, Office, and Agent; however, the database schema provides no way to distinguish them.

I'm planning to add this capability unless I have missed something obvious.  

joe

Mark Klein

unread,
Jun 21, 2013, 7:28:25 PM6/21/13
to variman...@googlegroups.com
On Jun 20, 2013, at 11:41 PM, Joe wrote:

> I configured my metadata to provide a photo Object for Property,
> Office, and Agent; however, the database schema provides no way to
> distinguish them.

Variman has a way of injecting exactly what you need without harming
existing usage. If you update the RetsMedia classes and friends, you
need to do it in such a way that it won't break an older database
against the newer code, or provide some means of automatically
migrating the table.

Or, provide your own implementation (you can model it after
DatabaseObjectSet) and inject it as "customObjectSet" in the spring-
appContext.xml file.



Regards,


M.

--
Mark Klein
PGP Key Available
www.dis.com

Reply all
Reply to author
Forward
0 new messages