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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:42:01+00:00 2026-06-11T01:42:01+00:00

In Database, I have a customer entity and a event entity. There is a

  • 0

In Database, I have a customer entity and a event entity. There is a MANY-TO-MANY relation between them called reserve.

reserve has three columns, CUSTOMER_ID, EVENT_ID and SEAT.

The first two columns are primary keys of each entity. The third one is a relational attribute that’s set specifically for the relation, so it is ONLY in the relation table.

What I am struggling is should I create a separate class for the reserve or should I do some trick in the two existing two classes to make this third one exist?

Thanks.

  • 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-11T01:42:02+00:00Added an answer on June 11, 2026 at 1:42 am

    A many-to-many relation table must have only two attributes: the two primary keys of the tables that should be linked. In your case, since you store another attribute within that relation table, it’s not a pure relation table and you have to create a extra POJO for it. As far as I know.

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

Sidebar

Related Questions

I have a customer that has an application that uses an Advantage Database. I
I have a SQL database with has the following: Customer, Item, Clothing and Food.
I have a database with the following table structures... The Customer table has two
I have an existing application that has the following entities in the database Customer
I have an customer invoice table in my MySQL database with a DECIMAL(10,2) field
I have a database with customer information, orders, etc. I need to run a
I have a database for tracking customer purchases over history. One of my forms
Suppose I have a class Customer that is mapped to the database and everything
I have a simple database named customer with a single table data.I want to
I have such tables in my database like Customer , Member , Instructor ,

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.