<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Delimited file to Java business model &amp; Hibernate in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Delimited-file-to-Java-business-model-Hibernate/m-p/2226490#M18385</link>
    <description>Hello, 
&lt;BR /&gt;I'm new user with Talend Open Studio. My goal is to read several "tab" delimited files and to write in several MySql tables, that don't have the same structure. 
&lt;BR /&gt;But I'm having a quite complex Java Business Model, with several MySql tables mapped through Hibernate. 
&lt;BR /&gt;I wonder if I could use Hibernate and my Java Business Model inside TOS in order to make mapping easier. 
&lt;BR /&gt;In that case, I wouldn't have to handle sequential generated index that make link between tables. 
&lt;BR /&gt;Here is an example of what I think about : 
&lt;BR /&gt;- Input file format : 
&lt;BR /&gt;oldId ; name ; road ; city 
&lt;BR /&gt;- Output MySql tables : 
&lt;BR /&gt; table PERSON : idPerson (automatically generated) ; name 
&lt;BR /&gt; table ADRESS : idAdress (automatically generated) ; fk_idPerson (link to PERSON.id) ; road ; city 
&lt;BR /&gt;What I would like to do is to import my business Java classes and to write some code inside TOS like this : 
&lt;BR /&gt; Person p = new Person(); 
&lt;BR /&gt; Adress a = new Adress(); 
&lt;BR /&gt; p.setName(input.name); 
&lt;BR /&gt; a.setRoad(input.road); 
&lt;BR /&gt; a.setCity(input.city); 
&lt;BR /&gt; p.setAdress(a); 
&lt;BR /&gt; myPersonDao.save(p); 
&lt;BR /&gt;Is there a way to do something like this ? 
&lt;BR /&gt;If not, what would be the best way to do that ? More particularly, how can I make reference in Adress table to the generated Person index ? 
&lt;BR /&gt;Thanks for any help.</description>
    <pubDate>Sat, 16 Nov 2024 14:27:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T14:27:26Z</dc:date>
    <item>
      <title>Delimited file to Java business model &amp; Hibernate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Delimited-file-to-Java-business-model-Hibernate/m-p/2226490#M18385</link>
      <description>Hello, 
&lt;BR /&gt;I'm new user with Talend Open Studio. My goal is to read several "tab" delimited files and to write in several MySql tables, that don't have the same structure. 
&lt;BR /&gt;But I'm having a quite complex Java Business Model, with several MySql tables mapped through Hibernate. 
&lt;BR /&gt;I wonder if I could use Hibernate and my Java Business Model inside TOS in order to make mapping easier. 
&lt;BR /&gt;In that case, I wouldn't have to handle sequential generated index that make link between tables. 
&lt;BR /&gt;Here is an example of what I think about : 
&lt;BR /&gt;- Input file format : 
&lt;BR /&gt;oldId ; name ; road ; city 
&lt;BR /&gt;- Output MySql tables : 
&lt;BR /&gt; table PERSON : idPerson (automatically generated) ; name 
&lt;BR /&gt; table ADRESS : idAdress (automatically generated) ; fk_idPerson (link to PERSON.id) ; road ; city 
&lt;BR /&gt;What I would like to do is to import my business Java classes and to write some code inside TOS like this : 
&lt;BR /&gt; Person p = new Person(); 
&lt;BR /&gt; Adress a = new Adress(); 
&lt;BR /&gt; p.setName(input.name); 
&lt;BR /&gt; a.setRoad(input.road); 
&lt;BR /&gt; a.setCity(input.city); 
&lt;BR /&gt; p.setAdress(a); 
&lt;BR /&gt; myPersonDao.save(p); 
&lt;BR /&gt;Is there a way to do something like this ? 
&lt;BR /&gt;If not, what would be the best way to do that ? More particularly, how can I make reference in Adress table to the generated Person index ? 
&lt;BR /&gt;Thanks for any help.</description>
      <pubDate>Sat, 16 Nov 2024 14:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Delimited-file-to-Java-business-model-Hibernate/m-p/2226490#M18385</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Delimited file to Java business model &amp; Hibernate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Delimited-file-to-Java-business-model-Hibernate/m-p/2226491#M18386</link>
      <description>Hello, &lt;BR /&gt;You can add your own library and your own Java classes through the Code/Routine repository items.&lt;BR /&gt;Regards,</description>
      <pubDate>Fri, 15 Feb 2008 13:47:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Delimited-file-to-Java-business-model-Hibernate/m-p/2226491#M18386</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-15T13:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Delimited file to Java business model &amp; Hibernate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Delimited-file-to-Java-business-model-Hibernate/m-p/2226492#M18387</link>
      <description>Thanks for your quick reply !&lt;BR /&gt;Do you think using my Hibernate DAO library would be a good way to do that ? Or is there a better way ?&lt;BR /&gt;Does people sometimes do like this ?&lt;BR /&gt;I ask for this question, because I searched in forum for "hibernate" keyword, but nobody seems to talk about that... So I'm wondering if it may cause problems... &lt;BR /&gt;Looking at TOS components, I suppose I will have to use tJavaRow or tJavaFlex, with nothing in output, but only Java code that call my DAO... I'll try that</description>
      <pubDate>Fri, 15 Feb 2008 14:18:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Delimited-file-to-Java-business-model-Hibernate/m-p/2226492#M18387</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-15T14:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Delimited file to Java business model &amp; Hibernate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Delimited-file-to-Java-business-model-Hibernate/m-p/2226493#M18388</link>
      <description>About automatically generated index and foreign-key (working with tMysqlOutput), I found the answer here : 
&lt;A href="http://www.talendforge.org/forum/viewtopic.php?pid=5509#p5509" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/forum/viewtopic.php?pid=5509#p5509&lt;/A&gt;
&lt;BR /&gt;About using Java business model and Hibernate, I got it working. However, it is very very slow !!
&lt;BR /&gt;Are there recommandations to work like this with good performances ? Or is it just non adapted to insert massive data ?
&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 15 Feb 2008 17:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Delimited-file-to-Java-business-model-Hibernate/m-p/2226493#M18388</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-15T17:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Delimited file to Java business model &amp; Hibernate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Delimited-file-to-Java-business-model-Hibernate/m-p/2226494#M18389</link>
      <description>Hibernate is a great library, but I would be really surprised if you get good performance results with such a library.
&lt;BR /&gt;I can only advice (if not already done) to avoid connection to the db in the main / row part of your generated code (this is why tJavaFlex seems to be adapted to your problem)
&lt;BR /&gt;HTH,</description>
      <pubDate>Fri, 15 Feb 2008 18:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Delimited-file-to-Java-business-model-Hibernate/m-p/2226494#M18389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-15T18:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Delimited file to Java business model &amp; Hibernate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Delimited-file-to-Java-business-model-Hibernate/m-p/2226495#M18390</link>
      <description>Indeed, at first time, I had put DB connection in "main" part !  &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;BR /&gt;When I corrected it, it was 3 or 4 times faster... but not really performant...&lt;BR /&gt;I think I will stay on tMysqlOutput...&lt;BR /&gt;Thanks for your help and advices !</description>
      <pubDate>Fri, 15 Feb 2008 18:11:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Delimited-file-to-Java-business-model-Hibernate/m-p/2226495#M18390</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-15T18:11:27Z</dc:date>
    </item>
  </channel>
</rss>

