Inverse and cascade,type of instances

Posted on 2012-09-12
Last Modified: 2012-09-30
I am preparing for an interview i want to brush up my skills

what is inverse and cascde in hibernate

what are the type of instance creation in hibernate
Question by:stmani2005
    LVL 8

    Author Comment

    Moderaor please put the question in J2ee and hibernate topics
    LVL 12

    Expert Comment

    by:Sharon Seth
    Cascade - when you sepecify this for a POJO , then whenever you save this POJO to DB,  then all the POJOS related to this POJO also get saved to the DB , without explicitly calling save on the related POJOs . Same with delete , when you delete this POJO , all related objects get deleted from DB . In short , any updates on this object get cascaded to all related objects
    LVL 20

    Accepted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Suggested Solutions

    An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
    This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
    Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
    This video teaches viewers about errors in exception handling.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now