Back Forum Reply New

Annotated metadata amp; vitual daos

Hi ,
I'm facing an interstring problem :  
i have to write a gateway to an application that can get data from several points : xml,objects,serializable data etc.. and i have to know how convert them to a simple generic pojo and persist them , when the data holds unique codes on several members that is not the @ID of the data database wise but it needs to be persisted in such a way that the data will hold databse ids .
the biggest problem is to dynamcly change the method on how to retreive the ids according to the unqiue code , for examle lets say i have a unqiue identifier of type String quot;#123aj2quot; and i want to define a : @provider(App.This) on the get method of that code when the .this will basicly define a real dao but i don't want to write it per instance (avaliable data) i want to define the quot;hookquot; point  for all avaliable dao of type annotation and create a virtual dao that will retrieve the data for me (no persisting trough this just retreving) just gets a pojo that is annotated with only @provider and returns it with the appropiate ids from he daos
how can something like that be implemnted ?
¥
Back Forum Reply New