Issue Details (XML | Word | Printable)

Key: FXP-95
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Katz, Max
Reporter: r, venu
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JavaFX plug-in

In java using seesion.merge in one object after that i delete that object getting error

Created: 10/Oct/11 01:34 AM   Updated: 10/Oct/11 01:34 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide
coding:

try {
Session session = getFactory().getCurrentSession();
tran = session.beginTransaction();
session.merge(department);
if ((department.getNsUserDepartments().isEmpty())
&& (department.getNsGrades().isEmpty())){
session.delete(department);
tran.commit();
return true;
} else {
tran.rollback();
return false;
}



in that coding department is an object.


when i try to delete the object after merge. i can't delete

There are no comments yet on this issue.