Santosh Kumar Nayak

Ranch Hand
+ Follow
since Aug 02, 2011
Santosh Kumar likes ...
IntelliJ IDE Eclipse IDE Java
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
5
Received in last 30 days
0
Total given
18
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Santosh Kumar Nayak

Below is code snippet




During upgrade am getting this error
incomparable types : javax.persistence.FlushModeType and org.hibernate.FlushMode

Can anyone help on it ?  

2 months ago
Am planning to use for pom.xml artifacts

<version>5.2.9.FINAL</version>
3 months ago
Hi All,

I am planning to upgrade from hibernate 4.x to 5.x versions

Currently am using :

org.springframework.orm.hibernate4.HibernateTransactionManager
org.springframework.orm.hibernate4.LocalSessionFactoryBean
org.springframework.orm.hibernate4.HibernateDaoSupport

I need to upgrade to

org.springframework.orm.hibernate5.HibernateTransactionManager
org.springframework.orm.hibernate5.LocalSessionFactoryBean
org.springframework.orm.hibernate5.HibernateDaoSupport

Any specific/stable version in 5.x which  I can use in my pom.xml ?



3 months ago
Hi All

Reflection API Question

I have collected Fields using for a Bean. As I do have a nested Bean so can anyone suggest me as how to read the nested Objects

I want to iterate through all the fields of a bean

e.g Bean Structure
Family
  Father
      his him half
  Mother
     her hers
  Child
    so  all of

Family has a father. Father can also have nested objects like his him half
                                  Mother can also have nested objects  like her hers
                                  Child can also have nested objects like  so all of

Thanks in Advance
2 years ago


THANKS This is what I was looking for ....
3 years ago
Special attention needed for  Date field

Below you can see an Immutable Class Sample :-

3 years ago
I recommend Parameterized Queries:



Above code would be useful






Above code is running code but need help to accommodate Dynamic Input using Scanner.in    

As of now am using static input  



3 years ago



Tried the above Code but does not work. It keeps taking Input from user

3 years ago
Any way to make take run time input using Scanner Class ?




Any Help on this would be appreciated !!!

3 years ago
Static class , methods and data members needs to be loaded in JVM before an instance  of the class is created
3 years ago



Output for 1st case:
MyThread
foo


But the Line 12 code is changed to

Ouput for 2nd case :
MyThread
Bar


What I want to understand is about the 2nd case

3 years ago
What is the difference between return and return 1?

I think return will return void value and

return 1 will return 1 . Anything else ?
3 years ago
Thanks

In case I want to change the Price of Orange to 50. How should I go about to do it ?
3 years ago


Can you please Help me to resolve the error on LINE no : 12  ( printMap(HashMap <Fruit, Price> hm);)



3 years ago