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

  • Home
  • SEARCH
  • 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 7074727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:05:34+00:00 2026-05-28T06:05:34+00:00

Suppose I have the following table: PARAMETER – NAME varchar2(10) – TABLE_NAME varchar2(50) –

  • 0

Suppose I have the following table:

PARAMETER
 - NAME         varchar2(10)
 - TABLE_NAME   varchar2(50)
 - REF_TABLE_ID number(10)
 - VALUE        varchar2(100)

This table holds parameter values for other tables for example if I have a table
named EMPLOYEE and I want to add a parameter to the employee with the ID 1 the
PARAMETER table will have a row as follows:

insert into PARAMETER (NAME, TABLE_NAME, REF_TABLE_ID, VALUE) values ('PARAM1', 'EMPLOYEE', 1, 'Value of PARAM1');

Ofcourse this does not force any integrety constraint, but this PARAMETER table cannot be changed.

Now I want to map this PARAMETER table in my entity EMPLOYEE, what I need is something to replace (@SomeAnnotation)

public class Employee {

  @OneToMany
  @JoinColumn(name="REF_TABLE_ID")
  @SomeAnnotation("and table_name = 'EMPLOYEE'")
  private List<Parameter> parameters;

  ... etc

}

For now I am using a @PostLoad annotation to load all PARAMETER’s related to this entity, but I would prefer if I could
map the PARAMETER Table somehow.

Another Idea I am having is to create a VIEW where I filter the PARAMETER table for TABLE_NAME = ‘EMPLOYEE’ but this means
that I will need to create a view for all my tables in the DB and they too much.

any thoughts?

  • 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-28T06:05:35+00:00Added an answer on May 28, 2026 at 6:05 am

    You’re looking for the @Where annotation. You don’t need the and in the clause, AFAIK.

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

Sidebar

Related Questions

Suppose that I have the following mapping with a formula property: <class name=Planet table=planets>
Suppose I have following table in my database: Tbl_Persons: Id Country Name 1 Australia
Suppose i have the following table book ----- id name genre check_out_date location_id Can
Suppose I have the following student table: id | name | datecreated ------------------------ 1
Suppose I have the following objects (one table per object) with this relations: A
Suppose I have the following table: PERSON : ID INT NAME STRING LASTNAME STRING
Suppose I have the following table house: House: id name cityID Where cityID refers
suppose I have the following source table (called S): name gender code Bob 0
Suppose we have the following table data: ID parent stage submitted 1 1 1
Suppose I have following string: String asd = this is test ass this is

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.