[Epsilon] running the ETL sample from Java [message #380475] |
Mon, 26 November 2007 13:45  |
Eclipse User |
|
|
|
Hello,
I'm new on Epsilon and I was trying to play with the examples.
In the ETL part, there is an example of using ETL from java. I have
modified the given Java class ETLStandaloneExample to make it compile
with the latest versions:
-EtlModuleImple becomes EtlModule,
-The method shutdown has been renamed as disposed
-the 'module.setSourceModel()' modified into
module.getContext().getTransformationStrategy().setSourceMod el()
-the 'module.setTargetModel()' modified into
module.getContext().getTransformationStrategy().setTargetMod el().
Is this alright?
Well, It says that DB!Database not found. Actually I have a plugin that
I ran as java application for this sample. The models (OO and DB) and
the instances (DBInstance and OOInstance) are placed at the project
folder. Am I missing something? Maybe the problem comes from the
modifications I made to make the class to compile.
Has anybody run this example successfully?
Jose Alfredo Serrano
|
|
|
|
Re: [Epsilon] running the ETL sample from Java [message #380482 is a reply to message #380479] |
Tue, 27 November 2007 03:48   |
Eclipse User |
|
|
|
Hi Dimitrios,
Thanks for your answer. I added models to repository manually as you
said but a NullPointerException is raised when calling the
AbstractTransformationStrategy#transformModel(IEtlContext). That is why
I added models using
module.getContext().getTransformationStrategy().setSourceMod el(). Is
this necessary to be done to when registering models too?
Sincerely,
Jose Alfredo
Dimitrios Kolovos a écrit :
> Hi Jose,
>
> Thanks for reporting this! In the previous version, setSourceModel() and
> setTargetModel() were adding the models to the model repository
> automatically. However this is not the case any more and therefore you
> have to add the ooModel and dbModel to the repository manually using the
> following statements:
>
> module.getContext().getModelRepository().addModel(ooModel);
> module.getContext().getModelRepository().addModel(dbModel);
>
> I'll update the on-line example shortly.
>
> Cheers,
> Dimitrios
>
> Jose Alfredo Serrano wrote:
>> Hello,
>>
>> I'm new on Epsilon and I was trying to play with the examples.
>> In the ETL part, there is an example of using ETL from java. I have
>> modified the given Java class ETLStandaloneExample to make it compile
>> with the latest versions:
>> -EtlModuleImple becomes EtlModule,
>> -The method shutdown has been renamed as disposed
>> -the 'module.setSourceModel()' modified into
>> module.getContext().getTransformationStrategy().setSourceMod el()
>> -the 'module.setTargetModel()' modified into
>> module.getContext().getTransformationStrategy().setTargetMod el().
>>
>> Is this alright?
>>
>> Well, It says that DB!Database not found. Actually I have a plugin that
>> I ran as java application for this sample. The models (OO and DB) and
>> the instances (DBInstance and OOInstance) are placed at the project
>> folder. Am I missing something? Maybe the problem comes from the
>> modifications I made to make the class to compile.
>>
>> Has anybody run this example successfully?
>>
>> Jose Alfredo Serrano
|
|
|
|
Re: [Epsilon] running the ETL sample from Java [message #380484 is a reply to message #380483] |
Tue, 27 November 2007 07:15  |
Eclipse User |
|
|
|
Hi Jose,
We are actually currently working on eliminating setSourceModel() and
setTargetModel() from ETL at all. In the next version (which should be
available by the end of this week) you won't have to define only one
source and one target model but instead you'll be able to specify rules
between any pair of models in the model repository
(context.getModelRepository()). Stay tuned :)
Cheers,
Dimitrios
Jose Alfredo Serrano wrote:
> Hi,
>
> I have register models in the model repository and in the
> TransformationStrategy. And it seems to work. Maybe one single method as
> it was before (setSourceModel and setTargetModel) can do this work
> transparent for the client that use the module? Or maybe it is not
> intended to be done this way? Anyway, I will stay tuned on any
> information about Epsilon.
>
> Thanks
> Sincerely,
> Jose Alfredo Serrano
|
|
|
Re: [Epsilon] running the ETL sample from Java [message #609673 is a reply to message #380475] |
Mon, 26 November 2007 16:42  |
Eclipse User |
|
|
|
Hi Jose,
Thanks for reporting this! In the previous version, setSourceModel() and
setTargetModel() were adding the models to the model repository
automatically. However this is not the case any more and therefore you
have to add the ooModel and dbModel to the repository manually using the
following statements:
module.getContext().getModelRepository().addModel(ooModel);
module.getContext().getModelRepository().addModel(dbModel);
I'll update the on-line example shortly.
Cheers,
Dimitrios
Jose Alfredo Serrano wrote:
> Hello,
>
> I'm new on Epsilon and I was trying to play with the examples.
> In the ETL part, there is an example of using ETL from java. I have
> modified the given Java class ETLStandaloneExample to make it compile
> with the latest versions:
> -EtlModuleImple becomes EtlModule,
> -The method shutdown has been renamed as disposed
> -the 'module.setSourceModel()' modified into
> module.getContext().getTransformationStrategy().setSourceMod el()
> -the 'module.setTargetModel()' modified into
> module.getContext().getTransformationStrategy().setTargetMod el().
>
> Is this alright?
>
> Well, It says that DB!Database not found. Actually I have a plugin that
> I ran as java application for this sample. The models (OO and DB) and
> the instances (DBInstance and OOInstance) are placed at the project
> folder. Am I missing something? Maybe the problem comes from the
> modifications I made to make the class to compile.
>
> Has anybody run this example successfully?
>
> Jose Alfredo Serrano
|
|
|
Re: [Epsilon] running the ETL sample from Java [message #609678 is a reply to message #380479] |
Tue, 27 November 2007 03:48  |
Eclipse User |
|
|
|
Hi Dimitrios,
Thanks for your answer. I added models to repository manually as you
said but a NullPointerException is raised when calling the
AbstractTransformationStrategy#transformModel(IEtlContext). That is why
I added models using
module.getContext().getTransformationStrategy().setSourceMod el(). Is
this necessary to be done to when registering models too?
Sincerely,
Jose Alfredo
Dimitrios Kolovos a écrit :
> Hi Jose,
>
> Thanks for reporting this! In the previous version, setSourceModel() and
> setTargetModel() were adding the models to the model repository
> automatically. However this is not the case any more and therefore you
> have to add the ooModel and dbModel to the repository manually using the
> following statements:
>
> module.getContext().getModelRepository().addModel(ooModel);
> module.getContext().getModelRepository().addModel(dbModel);
>
> I'll update the on-line example shortly.
>
> Cheers,
> Dimitrios
>
> Jose Alfredo Serrano wrote:
>> Hello,
>>
>> I'm new on Epsilon and I was trying to play with the examples.
>> In the ETL part, there is an example of using ETL from java. I have
>> modified the given Java class ETLStandaloneExample to make it compile
>> with the latest versions:
>> -EtlModuleImple becomes EtlModule,
>> -The method shutdown has been renamed as disposed
>> -the 'module.setSourceModel()' modified into
>> module.getContext().getTransformationStrategy().setSourceMod el()
>> -the 'module.setTargetModel()' modified into
>> module.getContext().getTransformationStrategy().setTargetMod el().
>>
>> Is this alright?
>>
>> Well, It says that DB!Database not found. Actually I have a plugin that
>> I ran as java application for this sample. The models (OO and DB) and
>> the instances (DBInstance and OOInstance) are placed at the project
>> folder. Am I missing something? Maybe the problem comes from the
>> modifications I made to make the class to compile.
>>
>> Has anybody run this example successfully?
>>
>> Jose Alfredo Serrano
|
|
|
Re: [Epsilon] running the ETL sample from Java [message #609679 is a reply to message #380479] |
Tue, 27 November 2007 04:22  |
Eclipse User |
|
|
|
Hi,
I have register models in the model repository and in the
TransformationStrategy. And it seems to work. Maybe one single method as
it was before (setSourceModel and setTargetModel) can do this work
transparent for the client that use the module? Or maybe it is not
intended to be done this way? Anyway, I will stay tuned on any
information about Epsilon.
Thanks
Sincerely,
Jose Alfredo Serrano
|
|
|
Re: [Epsilon] running the ETL sample from Java [message #609681 is a reply to message #380483] |
Tue, 27 November 2007 07:15  |
Eclipse User |
|
|
|
Hi Jose,
We are actually currently working on eliminating setSourceModel() and
setTargetModel() from ETL at all. In the next version (which should be
available by the end of this week) you won't have to define only one
source and one target model but instead you'll be able to specify rules
between any pair of models in the model repository
(context.getModelRepository()). Stay tuned :)
Cheers,
Dimitrios
Jose Alfredo Serrano wrote:
> Hi,
>
> I have register models in the model repository and in the
> TransformationStrategy. And it seems to work. Maybe one single method as
> it was before (setSourceModel and setTargetModel) can do this work
> transparent for the client that use the module? Or maybe it is not
> intended to be done this way? Anyway, I will stay tuned on any
> information about Epsilon.
>
> Thanks
> Sincerely,
> Jose Alfredo Serrano
|
|
|
Powered by
FUDForum. Page generated in 0.07522 seconds