Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #27642 > unrolled thread

Spring DAO accessing database

Started byNavneet Mathpal <navneetmathpal93@gmail.com>
First post2014-03-01 10:48 -0800
Last post2014-03-02 10:57 -0500
Articles 4 — 3 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  Spring DAO accessing database Navneet Mathpal <navneetmathpal93@gmail.com> - 2014-03-01 10:48 -0800
    Re: Spring DAO accessing database leif.roar@invalid.com (Leif Roar Moldskred) - 2014-03-02 06:54 -0600
      Re: Spring DAO accessing database Navneet Mathpal <navneetmathpal93@gmail.com> - 2014-03-02 05:29 -0800
        Re: Spring DAO accessing database Jeff Higgins <jeff@invalid.invalid> - 2014-03-02 10:57 -0500

#27642 — Spring DAO accessing database

FromNavneet Mathpal <navneetmathpal93@gmail.com>
Date2014-03-01 10:48 -0800
SubjectSpring DAO accessing database
Message-ID<0d2fa4e0-76e2-42b0-b47a-8a59190a7560@googlegroups.com>
Hi,
it is necessary  to have DAO to access the database in spring framework, or we can do it without DAO. 

if yes how 

Thanks

[toc] | [next] | [standalone]


#27650

Fromleif.roar@invalid.com (Leif Roar Moldskred)
Date2014-03-02 06:54 -0600
Message-ID<1b2dnbrv09hntI7OnZ2dnUVZ8tCdnZ2d@giganews.com>
In reply to#27642
Navneet Mathpal <navneetmathpal93@gmail.com> wrote:
>
> Hi,
>
> it is necessary to have DAO to access the database in spring
> framework, or we can do it without DAO.
>

No, you don't have to use a DAO idiom to do database access with the
Spring framework; you're free to use whichever database strategy you
prefer. In fact, Spring's JDBCTemplate class is a very convenient help
for doing plain SQL calls.

-- 
Leif Roar Moldskred

[toc] | [prev] | [next] | [standalone]


#27652

FromNavneet Mathpal <navneetmathpal93@gmail.com>
Date2014-03-02 05:29 -0800
Message-ID<9e518595-d66b-4aea-8ee0-548bad4d727e@googlegroups.com>
In reply to#27650
Hi Leif,

if it is, please check the code why it is not working 
https://groups.google.com/forum/#!topic/comp.lang.java.programmer/livB-uw8Lj4

[toc] | [prev] | [next] | [standalone]


#27653

FromJeff Higgins <jeff@invalid.invalid>
Date2014-03-02 10:57 -0500
Message-ID<levkdv$d8s$1@dont-email.me>
In reply to#27652
On 03/02/2014 08:29 AM, Navneet Mathpal wrote:
> Hi Leif,
>
> if it is, please check the code why it is not working
> https://groups.google.com/forum/#!topic/comp.lang.java.programmer/livB-uw8Lj4
>
Perhaps this will help:

Spring Data MongoDB - Reference Documentation
<http://docs.spring.io/spring-data/data-document/docs/current/reference/html/>

In particular, you might have better following:

Chapter 3. Additional Help Resources
<http://docs.spring.io/spring-data/data-document/docs/current/reference/html/#get-started>

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web