Janki Shah

Ranch Hand
+ Follow
since Nov 23, 2011
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Janki Shah

Thank you everyone! I ll start learning from DI. And use the resources you have suggested.
11 years ago
@ Lalkhum: Thank you. I will start from IoC then.
11 years ago
Hi Rocky,

Thank you for your reply.
I basically want to learn all the necessary frameworks for my job to build a website. I started with hibernate and now I want to move on to the next level. So, in this case what is the best thing to start, spring IoC or spring mvc?
11 years ago
Hi Everyone,

I am new to spring framework and I want to learn spring mvc. Can some one please help me to get started? What should I first read or learn? Is there any good examples or tutorial?
Thank you.
11 years ago
@Paul & @Vinod : thank you the simplest way worked that you have suggested!
let me explain my steps,
1. selected project(MyFirstApp)
2. right click properties ->Java Build Path -> libraries -> add Library -> JRE Systems Library -> Execution Environment

So, here i was trying to change the execution environment. I do not even sure where I spouse to change it. I was searching online and one of the suggestion was this.
I tried changing the execution environment by selecting jre1.7(unbound). but comes to default which in my case jre1.6.
I am trying to change jre6 to jre7 in eclipse environment. Can some one please help me?

Exception in thread "main" org.hibernate.MappingException: Unknown entity: java.util.HashSet
at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:693)
at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1485)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:120)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:210)
at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:56)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:195)
at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:50)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:713)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:701)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:697)
at com.code.test.Test.main(Test.java:31)

Can some one please help me with this error?
Thanks Bill for the reply and the link. It might take some time to understand the content of the link since I am new to hibernate.
But one more question, In which condition we should implement Serializable and in which condition it's ok not to implement ?

why do we require to implement Serializable for persistent classes in hibernate?
Thanks Gurpeet. Got the point. You explained it very well.
GetServerPort returns the port where server is listening and getRemotePort returns with the client port. But aren't,t those same thing ?
Congratulations Ashok!
11 years ago