JPA/JDBC without Hibernate

58 views
Skip to first unread message

Norm

unread,
Sep 15, 2010, 11:26:17 AM9/15/10
to play-framework
hello all,

I just discovered Play while researching alternatives to Grails and
Spring. I really like what I see so far. I have a UniVerse ( http://www.rs.com/u2
) database which has a JDBC driver as well as a beta JPA provider that
uses OpenJPA 1.2. Unfortunately there is no UniVerse/UniData dialect
for Hibernate, so I can't use that. What, if any, would be your
recommended way to wire up my database to Play?

Thanks,
Norm

Guillaume Bort

unread,
Sep 15, 2010, 1:02:07 PM9/15/10
to play-fr...@googlegroups.com
You can use plain JDBC with play.

> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
>

--
Guillaume Bort, http://guillaume.bort.fr

For anything work-related, use g...@zenexity.fr; for everything else,
write guillau...@gmail.com

GrailsDeveloper

unread,
Sep 15, 2010, 1:49:03 PM9/15/10
to play-framework
If you trust the beta JPA provider that uses OpenJPA 1.2, I think it
must be possible to change hibernate with OpenJPA1.2. That's the idea
from JPA.
Otherwise you must use jdbc, which you can combine with ibatis, which
make the life a little bit easier.
Third approach is to contact the people of ebean if they can help
you.
At least: I would guess that the ddl-feature is most critical, but you
can create the ddl manually. Most databases are compatible to oracle
or db2. So you can try JPA with hibernate or OpenJPA and ifyou get in
some situation not usable sql-statements you must do it manually.
The best choice seems to change the database.

Niels

On 15 Sep., 17:26, Norm <normanba...@gmail.com> wrote:
> hello all,
>
> I just discovered Play while researching alternatives to Grails and
> Spring. I really like what I see so far. I have a UniVerse (http://www.rs.com/u2

Norm

unread,
Sep 15, 2010, 3:33:39 PM9/15/10
to play-framework
thank you. I never considered trying the DB2 dialect...lol

On Sep 15, 1:49 pm, GrailsDeveloper <opensourc...@googlemail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages