Thank you for your answer Georgi, I am going to read the OpenJPA's documentation.<br><br>Best regards<br>Rafael<br><br><div class="gmail_quote">2012/5/22 Georgi Naplatanov <span dir="ltr"><<a href="mailto:gosho@oles.biz" target="_blank">gosho@oles.biz</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If your database schema is ready, you can use OpenJPA's reverse mapping tool [1] to generate your persistence classes. It works well, but you have to adjust class names for multi-column primary keys and add @Lob annotation for binary fields and do not forget to use build time enhancement.<br>

<br>
Using cache, database connection pool and prepared statements improve performance.<br>
<br>
Best regards<br>
Georgi<br>
<br>
[1] - <a href="http://openjpa.apache.org/builds/2.2.0/apache-openjpa/docs/manual.html#ref_guide_pc_reverse" target="_blank">http://openjpa.apache.org/<u></u>builds/2.2.0/apache-openjpa/<u></u>docs/manual.html#ref_guide_pc_<u></u>reverse</a><div class="im">
<br>
<br>
On 05/22/2012 06:26 PM, Rafael Braza Polanco wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
I'm going to look for information about how to use OpenJPA.<br>
<br>
Thank you.<br>
<br>
<br>
<br></div>
2012/5/22 Georgi Naplatanov <<a href="mailto:gosho@oles.biz" target="_blank">gosho@oles.biz</a> <mailto:<a href="mailto:gosho@oles.biz" target="_blank">gosho@oles.biz</a>>><div class="im"><br>
<br>
    Hi Rafael.<br>
<br>
    You can use whatever suit your needs. OpenCms 8.x includes OpenJPA<br>
    2.x as JPA provider, but it's possible to use other JPA providers<br>
    (like Hibernate) as well.<br>
<br>
    Best regards<br>
    Georgi<br>
<br>
<br>
    On 05/22/2012 05:11 PM, Rafael Braza Polanco wrote:<br>
<br>
        Hello list,<br>
<br>
        I would like to connect to a schema in MySQL, not OpenCMS's schema,<br>
        another one I have created.<br>
        Can I do it or maybe I need to use Hibernate, JPA?<br>
<br>
        Thank you.<br>
<br>
<br>
<br>
<br>
<br>
        ______________________________ _________________<br>
        This mail is sent to you from the opencms-dev mailing list<br>
        To change your list options, or to unsubscribe from the list,<br>
        please visit<br>
        <a href="http://lists.opencms.org/cgi-" target="_blank">http://lists.opencms.org/cgi-</a> bin/mailman/listinfo/opencms- dev<br></div>
        <<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-<u></u>bin/mailman/listinfo/opencms-<u></u>dev</a>><br>
<br>
<br>
<br>
    ______________________________ _________________<div class="im"><br>
    This mail is sent to you from the opencms-dev mailing list<br>
    To change your list options, or to unsubscribe from the list, please<br>
    visit<br>
    <a href="http://lists.opencms.org/cgi-" target="_blank">http://lists.opencms.org/cgi-</a> bin/mailman/listinfo/opencms- dev<br></div>
    <<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-<u></u>bin/mailman/listinfo/opencms-<u></u>dev</a>><br>
<br>
<br>
<br>
<br>
<br><span class="HOEnZb"><font color="#888888">
<br>
--<br>
Saludos.</font></span><div class="im"><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-<u></u>bin/mailman/listinfo/opencms-<u></u>dev</a><br>
<br>
<br>
<br>
</div></blockquote><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-<u></u>bin/mailman/listinfo/opencms-<u></u>dev</a><br>
<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Saludos.<br>