abdul mobeen

Greenhorn
+ Follow
since Aug 21, 2016
abdul likes ...
Hibernate Spring PHP
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by abdul mobeen

Hi,

     I am trying to create CRUD for Book Entity. But getting this error.:



HTTP Status 500 - Request processing failed; nested exception is java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: book is not mapped [from book].

Here the code :







servlet config file.





Hi,
   Can anybody tell me the difference between :
ModelMap map,
@ModelAttribute(value="employee")
@PathVariable("employeeId")

And which one to use when.

Thanks in advance.
4 years ago
I have created a simple Spring Demo to learn spring. I created two objects of class Asian from spring container. I set of value of first object to Ali and second to Usman but when I print them the value of both of the objects is usman. I didn't expect that. Please can anybody tell me whats the problem . Below is the code:




--------------------------------------


--------------------------------

--------------------------------------



Output is below :

My name is : Usman
My name is : Usman
Usman -
Usman -

---------------------------------------
I think out put should be like



My name is : Ali
My name is : Usman
Ali -
Usman -


Please help.


4 years ago