tag:blogger.com,1999:blog-8712770457197348465.post5793629595171032715..comments2024-03-18T23:01:42.768-07:00Comments on Javarevisited: Data Access Object (DAO) design pattern in Java - Tutorial Examplejavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-8712770457197348465.post-29689148038270712142016-03-31T03:18:17.384-07:002016-03-31T03:18:17.384-07:00awesome explanation!awesome explanation!sandeephttps://www.blogger.com/profile/09559607327517936721noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-30960181096149257432014-02-24T19:23:37.793-08:002014-02-24T19:23:37.793-08:00Always remember to make your DAO class name same a...Always remember to make your DAO class name same as Table name, for example if you have Customer table than your DAO class should be called OrderDAO, similarly if you have Product table than you can name it OrderDAO. If its not possible then consider declaring a public static final String TABLE = "ORDER_XYZ", this makes easy to correlated which table a particular DAO class is connectingAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-69779056850498873452013-08-17T14:20:32.781-07:002013-08-17T14:20:32.781-07:00how i call the operation getOptionhow i call the operation getOptionAnonymoushttps://www.blogger.com/profile/06335597434638280924noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-27958917234872951762013-01-08T01:27:24.682-08:002013-01-08T01:27:24.682-08:00Hi Paul, In my app I am loading some other propert...Hi Paul, In my app I am loading some other properties and I added a flag to check the above condition. It was working fine. thank you for your suggestion.Mangapathihttps://www.blogger.com/profile/14695139283931743407noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-21345996668848167162013-01-07T07:05:36.086-08:002013-01-07T07:05:36.086-08:00Hi Mangapathi, One way I can think of doing this i...Hi Mangapathi, One way I can think of doing this is using a flag in ServletContext that whether you are using database or LDAP or authentication.Javin @ HashMap vs HashSethttp://javarevisited.blogspot.sg/2011/09/difference-hashmap-vs-hashset-java.htmlnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-37635808645630393392013-01-07T05:55:30.582-08:002013-01-07T05:55:30.582-08:00Thanks for your quick reply Paul.
In my app as of...Thanks for your quick reply Paul. <br />In my app as of now I am using DAO Authentication provider and there are some events like checking user password expired or not.If yes I will redirect page to change password. But here I have to redirect only if authentication is happening using DAO not by LDAP.In this case how I need to check whether my app is using LDAP or not. <br />For doing this is Mangapathihttps://www.blogger.com/profile/14695139283931743407noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-50245235768411342852013-01-07T04:03:31.692-08:002013-01-07T04:03:31.692-08:00Hi Mangapthi, it's based on requirement. Since...Hi Mangapthi, it's based on requirement. Since LDAP is standard of maintaining user account and access and there are admin tools exist for that, its always a prefer choice. If you are doing any business application, almost all the time you will use LDAP in DAO layer for authentication. On the other hand using database for storing user name and password it's good for test purpose but Javin @ print array javahttp://javarevisited.blogspot.sg/2012/12/3-example-to-print-array-values-in-java.htmlnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-91835359859751566372013-01-07T03:28:34.393-08:002013-01-07T03:28:34.393-08:00Hi Paul, I am new to spring security. I read your ...Hi Paul, I am new to spring security. I read your security using LDAP and it was very helpful to me.Currently in my application I'm using DAO Authentiation provider. I need to change to LDAP. I configured as specified in your article, keeping my previous configuration as it is. Here my doubt is how to decide whether I have to use LDAP or DAO Authentication provider? Can you please help in Mangapathihttps://www.blogger.com/profile/14695139283931743407noreply@blogger.com