|
|
Re: [Epsilon] running the ETL sample from Java [message #380482 is a reply to message #380479] |
Tue, 27 November 2007 08:48 |
Jose Alfredo Serrano Messages: 23 Registered: July 2009 |
Junior Member |
|
|
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 #609678 is a reply to message #380479] |
Tue, 27 November 2007 08:48 |
Jose Alfredo Serrano Messages: 23 Registered: July 2009 |
Junior Member |
|
|
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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02199 seconds