Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I opened the job in "java editor" and edit the some specific code and build the job.
So after build the job my changes are roll backed and its not displayed my changes too.
Hi,
You cannot directly edit the code generated for a Talend Job.
If you want to include your own Java code in a Job, use one of these methods:
Let us know if it is OK with you.
Best regards
Sabrina
Okay.
Can you please explain me how to use these components which you mentioned in your post.
And If I create custom routine then how will it point to my job in which I want to edit or modify the code.
Hello,
Please have a look at related component references about:TalendHelpCenter:tJava, TalendHelpCenter:tJavaRow and TalendHelpCenter:tJavaFlex
TalendHelpCenter: Differences between tJava, tJavaRow and tJavaFlex
If you are creating a custom routine to include your own java code in job, you can call a routine from a job. Please refer to this document:TalendHelpCenter:Calling a routine from a Job
Best regards
Sabrina
Hello,
For your job requirement, could you please set an example for us? Are you referring to data mapping between Talend type and db type?
Best regards
Sabrina
Hello,
If you want to change the default data type mapping.
Please have a look at this document https://community.talend.com/t5/Migration-Configuration-and/Changing-the-default-data-type-mapping/t...
Best regards
Sabrina
public String Current_Sales_Rep_Name;
public String getCurrent_Sales_Rep_Name() {
return this.Current_Sales_Rep_Name;
}
public String Delivery_Status_Desc;
public String getDelivery_Status_Desc() {
return this.Delivery_Status_Desc;
}
public String Sold_to_Party_Nbr;
public String getSold_to_Party_Nbr() {
return this.Sold_to_Party_Nbr;
}
public String Sold_to_Party_Name;
public String getSold_to_Party_Name() {
return this.Sold_to_Party_Name;
}
public java.util.Date Bill_Posting_Date;
public java.util.Date getBill_Posting_Date() {
return this.Bill_Posting_Date;
}
public String Sales_Nbr;
public String getSales_Nbr() {
return this.Sales_Nbr;
}
public String Shipped_Merchandise_Value;
public String getShipped_Merchandise_Value() {
return this.Shipped_Merchandise_Value;
}
I just want to add one new field named "Billing Number". and set its getter method. Nothing else.
Hi,
Have you tried to achieve your goal by using custom code component tJavaRow? Which allows you to enter the Java code to be applied to each row of the flow.
Best regards
Sabrina
Not yet. But I will try it now.
Can you please give me the tJavaRow component download link ? Or any other way to install or add this component in the project ?