when update is done on parent object child object is also updated

Ads
 

when update is done on parent object child object is also updated

here is my code..

Hibernate-1

Hibernate-2

            <many-to-one class="AnotherForeignKeyObjectJavaClass"   lazy="false" fetch="select" name="AnotherForeignKeyObject">
        <column name="fk_Another_foreign_key_object_primary_key" />
    </many-to-one>
</class>

when am trying to update actual_object hibernate is also updating AnotherForeignKeyObject.i want to skip updating of AnotherForeignKeyObject.i tried lazy=true but it does not work help me on this thanks in advance.

View Answers

Ads









Related Tutorials/Questions & Answers:
when update is done on parent object child object is also updated
when update is done on parent object child object is also updated  ..._Another_foreign_key_object_primary_key" /> </many-to-one> </class> when am trying to update actual_object hibernate is also updating
what is the working of JVM when An object is created of a class?
what is the working of JVM when An object is created of a class?  what is the working of JVM when An object is created of a class?   When the JVM creates the instance of your class object,the object instance is stored
Advertisements
object
object  is it possible to create object in the same class..?.   Yes, you can. class CreateObject { CreateObject(){ System.out.println("I have an object."); } public static void main(String[] args
Parent child windows relationships when webpage is accesssed through a hyperlink.
Parent child windows relationships when webpage is accesssed through... is loaded. The webpage has parent/child windows. This timeout functionality works in the parent window(home page) even when the child windows are open. And so i
object creation
object creation  when will java object is created? is it at runtime or compiletime
Object
for the future scope of that project as objects. Even a toy is an object for a child... of declaring an object, a constructor is called automatically when the new keyword... Object       An object
object as argument
object as argument  what happens when we pass a object into a method???if java is pass by value how does this makes a difference.....pllzzz give me more clarification on why we pass objects in a margument
Object Oriented
Object Oriented  C++ is Purely object oriented or not .Then why java called purely object oriented
Object reference not set to an instance of an object
Object reference not set to an instance of an object  Object reference not set to an instance of an object
Java Object
Java Object         Object is the basic entity of object oriented programming language. Object... properties of the class or its group. Java object is an instance of the class. It takes
ArrayList object
ArrayList object  i have am ArrayList object it containg data base records in it, now i want to display this ArrayList object data in my jsp programe, plz help me
Simple but confusing code... Parent obj1 = new Parent(); Parent obj2 = new Child();
Child();  Hi friends I got confused in the below code snippet: Parent obj1 = new Parent(); Parent obj2 = new Child(); Here we have created obj1 object.... Then we create Parent obj2 = new Child(); <--------------- here in this code
object array
object array  Hi i have array that is object[] obj= { new string("hi"), new vector().add(10), new hashmap().setkey()} display(obj); display(object{[] obj) {} Now my question is what is the string length and how to retrieve
constructor or object
constructor or object  object or construct which create first?   A constructor is always created first. Here is an example: class Example { Example(String st){ System.out.println(st); } public
object and method
object and method  a college would like to automate managing courses offered to students. initially only three courses are involved. each courses has... and an application that creates the necessary object
Object slicing
Object slicing  I have a program as bellow: #include<iostream.h> #include<conio.h> class A { public: int x; A() { x=10; } }; class B:public A { protected: int y
parent and child dropdown
parent and child dropdown  Hi, I have one scenario in spring,i need to populate child drop down,based on parent dropdown using spring mvc and ajax... know how to use it in child drop down.How to set that child dropdown in success
What is an object's lock and which object's have locks?
What is an object's lock and which object's have locks?   Hi, What is an object's lock and which object's have locks? Thanks
View object in JSF
View object in JSF  What is view object
Pass value from child to parent window
: This the child widow which will be open when we open it from the parent window... Pass value from child to parent window   ... to parent window We can pass values from a child window in Html to the parent
ModuleNotFoundError: No module named 'txt_when_done'
ModuleNotFoundError: No module named 'txt_when_done'  Hi, My... 'txt_when_done' How to remove the ModuleNotFoundError: No module named 'txt_when_done' error? Thanks   Hi, In your python
string object
string object  Hi, how do i write a program that works with a user's password, when the program should prompt the user for a possible password, that is between 6 and 10 characters long, that contains at least one letter
Object in java - Java Beginners
: When we create object from a class, it is created on stack or on heap...Object in java  Hi deepak, I am new to java, can u tell me what is class ,object and instance with example. For example : class raja , raja r
Convert Object To XML
into xml file as child node values. Convert Object To XMLTo create a xml file pass...; out.write("  <child"+ i +">"+object... Convert Object To XML      
request object value
request object value  Hi Friends I am developing a web application. In this application we have a login page. Thr are different text field. when we... request object value for whole application. Problem is..envirement session
Potential leak of an object XCode
Potential leak of an object XCode  What is potential leak of an object XCode
implementation object in C
implementation object in C  how to create and implement an object in C
use of object tag
use of object tag  how to use object tag in html
Session Object from request
Session Object from request  Why are we getting session object from request object? Why are we adding cookie object into response object? Why are we getting cookie object from request object? I know all methods are available its
Object relational Mapping
Object relational Mapping  Define ORM
java : object oriented
java : object oriented   (a) Write a class named CarRental... also includes a display () method that displays all the rental data. (b) Create... at RM200 more per fay. Override the parent class display() method to include

Ads