[opencms-dev] Connecting to a extern database
Georgi Naplatanov
gosho at oles.biz
Tue May 22 18:07:20 CEST 2012
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.
Using cache, database connection pool and prepared statements improve
performance.
Best regards
Georgi
[1] -
http://openjpa.apache.org/builds/2.2.0/apache-openjpa/docs/manual.html#ref_guide_pc_reverse
On 05/22/2012 06:26 PM, Rafael Braza Polanco wrote:
> I'm going to look for information about how to use OpenJPA.
>
> Thank you.
>
>
>
> 2012/5/22 Georgi Naplatanov <gosho at oles.biz <mailto:gosho at oles.biz>>
>
> Hi Rafael.
>
> You can use whatever suit your needs. OpenCms 8.x includes OpenJPA
> 2.x as JPA provider, but it's possible to use other JPA providers
> (like Hibernate) as well.
>
> Best regards
> Georgi
>
>
> On 05/22/2012 05:11 PM, Rafael Braza Polanco wrote:
>
> Hello list,
>
> I would like to connect to a schema in MySQL, not OpenCMS's schema,
> another one I have created.
> Can I do it or maybe I need to use Hibernate, JPA?
>
> Thank you.
>
>
>
>
>
> ______________________________ _________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list,
> please visit
> http://lists.opencms.org/cgi- bin/mailman/listinfo/opencms- dev
> <http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev>
>
>
>
> ______________________________ _________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please
> visit
> http://lists.opencms.org/cgi- bin/mailman/listinfo/opencms- dev
> <http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev>
>
>
>
>
>
>
> --
> Saludos.
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
More information about the opencms-dev
mailing list