Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » metamodel with two data sources using annotations(Metamodel with annotations getting data from multiple sources.)
metamodel with two data sources using annotations [message #1022914] Fri, 22 March 2013 15:31 Go to next message
Eclipse UserFriend
I'm using Eclipselink 2.4 and I'm trying to create a metamodel class using annotations that references data being returned from a view and also from various stored procedures. I've looked at some promising ones (MappedSuperclass, multitenant ...) but I'm not sure of the best way to proceed.

The view and queries are both read-only and their data structure is the same. I don't want to have to duplicate code by creating a model for each. Any suggestions would be appreciated. Thanks.
Re: metamodel with two data sources using annotations [message #1027059 is a reply to message #1022914] Tue, 26 March 2013 10:09 Go to previous message
Eclipse UserFriend
You should be able to map an Entity to the view. For the stored procedures you should be able to use a @NamedStoredProcedureQuery that maps to the same entity class.
Previous Topic:Infinite loop with self-referencing bi-directional relationship
Next Topic:validate unique column before commit
Goto Forum:
  


Current Time: Thu Jul 03 03:27:11 EDT 2025

Powered by FUDForum. Page generated in 0.27487 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top