Has anybody tried mapping database views in oracle using ActiveRecord? Please can I get some sample code for that?
+2
A:
No code necessary: just use the view name instead of the table in your [ActiveRecord]
attribute:
[ActiveRecord("MyView")]
public class Document {...}
Be aware that SchemaExport will treat your view as a table, here's how to fix that.
Mauricio Scheffer
2010-01-12 13:03:42
ActiveRecord FAQ: http://using.castleproject.org/display/AR/FAQ
Mauricio Scheffer
2010-01-24 15:17:41