Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7508527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:41:17+00:00 2026-05-29T22:41:17+00:00

I have next code getEntityManager().persist(country.getCity().getClinic().getPatient()); and see next sql in log Hibernate: select next

  • 0

I have next code

getEntityManager().persist(country.getCity().getClinic().getPatient());

and see next sql in log

Hibernate: 
select
    next value for patient_seq 
from
    dual_patient_seq
Hibernate: 
    select
        next value for clinic_seq 
    from
        dual_lclinic_seq
Hibernate: 
    select
        next value for city_seq 
    from
        dual_city_seq

But sequence for ‘country’ isn’t generated. All XML are allright. Whan is the problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T22:41:18+00:00Added an answer on May 29, 2026 at 10:41 pm

    Thx, Thomas! Problem was in ‘cascade’. I change City.hbm.xml from

      <set name="countrysPersistent" lazy="true" inverse="true" >
       <key column="country" />
             <one-to-many class="Country" />
          </set>
    

    to

    <set name="countrysPersistent" lazy="true" inverse="true"  cascade="all">
        <key column="country" />
             <one-to-many class="Country" />
          </set>
    

    and it was helpful!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the next code in my view: <Style x:Key=documentFileNameStyle> <Setter Property=TextBlock.Foreground Value=Gray/> <Style.Triggers>
I have the next code to display my countries table in a select box:
I have the next code. I save it in the file: 'MysqlConnect.java'. import java.sql.*;
I have next code for element form select: <div style=width: 300px; margin: 0 auto;
Suppose we have next code: struct int64 { long long value; int64() : value(0)
I have thi next code, but he doesn't work: $select_sell = $this->select(); $select_sell->from($this->_name, array('rank_id'))
I have next code: SET @rownum=0; UPDATE product_images AS t, (SELECT @rownum:=@rownum+1 rownum, id,
I have the next code, I'm trying to return the value of players in
I have the next code: char * word = ?www?eee; I wanto to see
I have next code, <form id=form1 runat=server> <asp:Label runat=server ID=Label1 EnableViewState=false /> <asp:CheckBox runat=server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.