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 9071419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:54:29+00:00 2026-06-16T17:54:29+00:00

In my Hibernate Pojo classes i’m using like this.. @Entity @Table(name=EC_TIMETABLE) public class TimetableVO{

  • 0

In my Hibernate Pojo classes i’m using like this..

@Entity
@Table(name="EC_TIMETABLE")
public class TimetableVO{
@ManyToOne
@JoinColumn(name="SKILLSET_ID", insertable=false, updatable=false)
private SkillsetVO skillset;
...
...
}

and Another Bean

@Entity
@Table(name="EC_SKILLSET")
public class SkillsetVO{

    @ManyToOne
    @JoinColumn(name="USER_ID", insertable=false, updatable=false)
    private UserVO user;

    @ManyToOne
    @JoinColumn(name="COURSE_ID", insertable=false, updatable=false)
    private CourseVO course;
}

And my user Bean..

@Entity
@Table(name = "EC_USER")
public class UserVO extends AbstractVO {
@OneToMany(mappedBy = "user", fetch = FetchType.EAGER)
    private Set<SkillsetVO> skillset;
}

And in my Service class just i’m inserting the bean..

@Transactional
public void createEvent(TimetableVO timetableVO) throws DataAccessException {
        System.out.println(timetableVO.getSkillset().getId());//Hear id is P.K in SkillSetVO
    entityManager.persist(timetableVO);
}

Hear The output Statement Print "S1" But in the Database it is showing NULL…

So is their any Wrong Mapping i set into Bean Classes?

  • 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-06-16T17:54:31+00:00Added an answer on June 16, 2026 at 5:54 pm
    @ManyToOne
    @JoinColumn(name="SKILLSET_ID", insertable=false, updatable=false)
    private SkillsetVO skillset;
    

    try removing insertable=false

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

Sidebar

Related Questions

Let's say I have following POJO's using Hibernate. public class User { private String
i have a table like this one: id | name | score mapped to
I have a simple POJO mapped to a table using Hibernate. Which works just
I followed this tutorial: http://www.wikihow.com/Generate-Hibernate-Pojo-Classes-from-DB-Tables After I click finish, it looks like something is
Suppose that I have the following HBM mapping: <class name=Student table=student> <set name=classes table=student_classes
I am generating hibernate pojo classes with annotations from existing tables using Ant Script.
I have a hibernate managed POJO with a set: public class Book { private
I am using ClassMetadata to determine the structure of a hibernate POJO. I need
I've got a simple pojo which is filled thanks to hibernate. I would like
Using hibernate, how can I persist a class with a List<String> field? Consider the

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.