Question
What are the states of object in hibernate?

Answers

There are 3 states of object (instance) in hibernate.

Transient: The object is in transient state if it is just created but has no primary key (identifier) and not associated with session.

Persistent: The object is in persistent state if session is open, and you just saved the instance in the database or retrieved the instance from the database.

Detached: The object is in detached state if session is closed. After detached state, object comes to persistent state if you call lock() or update() method.   Your Comment




More States,Software Questions..
Why is pawan kalyan so popular in telugu states ?

What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?



Search
Can you Answer!!
  • Q In 1739, who defeated the Mughal army at the Battle of Karnal?
  • Q Who is the target audience? What kind of browsers will they be using? What kind of connection speeds will they by using? Are they intra- organization (thus with likely high connection speeds and similar browsers) or Internet-wide (thus with a wide variety of connection speeds and browser types)?
  • Q Is CBA allowed by law?
  • Q How do you speak to someone in a business relationship whom you do not know well?
  • Q Why not phenix, the zelinka/otwinoski libraries, etc?
  • Q What are the advantages to use stored procedures?
  • Q OOPs concept
  • Q What is Storage Location? how to maintain storage locations?
  • Q int x[3][4] ={ {1,2,3}, {4,5,6}, {7,8,9} } (a) x[2][1] = x[2][2] =x[2][3] = 0 (b) value in fourth column is zero (c) value in last row is zero (d) none of above.
  • Q Describe the electrostatic potential energy of a charge in an electrostatic field ?
  • Q Name the only sport which is played with right hand only?