java - What is the equivalent of Spring-JDBC in CDI? -


considering replacing spring cdi in new project, i've encountered problemchallenge:

we plenty of things sql queries (for jpa isn't reasonable): invoking stored procedures, reporting, specialized queries complicated syntax.

there's plenty of trivial examples cdi database access in internet, , trivial examples jpa sufficient. how work sql in jpa?

i'm looking spring-jdbc, simplified interface running sql queries through jdbc , container managing transactions (through annotations), havent't found yet.

how 1 work sql queries in cdi? possible cdi core or extensions?

there isn't in spec doing this. you'd have create own library, create transaction layer (or use jta 1.2 java ee 7, or apache deltaspike) , build way. did mention deltaspike, in (hopefully) released version 0.5 have of these query , other db specific features.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -