0
votes
1answer
9 views

How does the data get stored in the 'singer' table when didn't make a commit for the object of that class?

There are certain things I do not understand about a small hibernate application for which the mapping xml is shown below. <class name="pojo.Ghazal" table="ghazal"> <id ...
3
votes
0answers
16 views

How to avoid updating unchanged fields?

I need to configure my hibernate to avoid updating those fields that has not been changed. So I have added the following annotation to my class but it crossed the Entity, and dynamicUpdate. ...
1
vote
1answer
23 views

I do not understand this mapping file.What does many-to-many tag here do?

I have a problem understanding the following hibernate mapping xml. <class name="pojo.NewClass" table="emp_master"> <id name="emp_code"> <generator class="increment" ...
1
vote
1answer
50 views

what type of mapping is this?

With the hibernate mapping file as shown : <hibernate-mapping> <class name="pojo.Ghazal" table="ghazal"> <id name="s_no"> <generator class="increment" ...
0
votes
1answer
29 views

How to retrieve selected columns from table and add them to hashmap?

I have a table with 18 rows, I need to retrieve all of its rows (there is no where clause in my query) and put them in a hashmap, I need to use IDs as keys of hashmap and names as values of hashmap ...
0
votes
2answers
26 views

What is associativity in hibernate? [closed]

What is associativity in hibernate ? What is its essence ?
0
votes
0answers
29 views

How to receive date from datetimepicker and save that into database?

I need to receive a date from user, and save that in database. I am using the following datetimepicker to receive the date, I receive the date as following, It runs into following exception ...
1
vote
0answers
23 views

How can i build a dynamic scaffolding in a jsp depending the subclass of an entity?

Well, I have the Vehicle Class, And I have a car, a bike, a motorcycle, and other classes with inheritance, and the administrator of vehicles (CRUD). When I search all the vehicles, the ...
0
votes
1answer
17 views

How to insert using hibernate 4.1.10.Final?

I am using hibernate 4.1.10.Final to insert data into database, but it throws the following exception, I have three tables, development and address . Development has an object of address in itself. ...
1
vote
1answer
37 views

Storing a common value for the 'employee code' while employing inheritance

There are 3 pojo namely EmployeeMaster (the parent class), Hr and Personal (the child class of EmployeeMaster). Then I have 3 separate tables for each pojo, constructed as : create table ...
-2
votes
1answer
63 views

expected type: java.lang.Integer, actual value: java.lang.Integer

What am I trying to do ? While loading my project I get a weird exception: rezg.admin.server.objects.common.pojo.EmailLogDetails, setter method of property: id I am to save the object ...
0
votes
2answers
50 views

JDBC connection fails, when trying to login the first time, after a while

I have a web application using Spring and Hibernate and mysql database. The issue is that, when the application is up for a while and there is no activity for a long time and then if the user tries to ...
0
votes
2answers
39 views

How to differentiate users in web application

How to differentiate users, after they log in into their account, in the way that they cannot see and edit other users' data? Is it a good approach to remember somehow user id during logging procedure ...
0
votes
2answers
25 views

Force Hibernate To Create Tables After Droping and Recreating database

I am developing a web application with java 2 ee. I also use hibernate and mysql. in order to restore the backup file, in some point in my application i need to drop the current database and recreate ...
0
votes
1answer
16 views

My hibernate mapping file doesn't pass the validation test and I get an exception as I try to run the program.Why is that?

As I try to run a program with the following xml mapping file, I get an exception which says : org.xml.sax.SAXParseException: The content of element type "joined-subclass" must match ...

1 2 3 4 5 58
15 30 50 per page