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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:26:50+00:00 2026-06-15T20:26:50+00:00

I have this type that I have created : create type baseType as Object(…)

  • 0

I have this type that I have created :

create type baseType as Object(...) NOT Instantiable not Final

and I’d like to add constraints to some fields. The problem is that this type in not instantiable and therefore, I can’t add a constraint to its fields. So then, when I create my inheriting types

create type childType1 under baseType (...) 

create type childType2 under baseType  (...) 

I’ll have to add constraints to all the children tables. Is this the correct way to go? I thought there would be a way to add the constraints on the common fields only in the parent type. Is there a way of doing that?

  • 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-15T20:26:52+00:00Added an answer on June 15, 2026 at 8:26 pm

    You can’t add constraints to object types at all – constraints are on a table. If the object is not instantiable, you can’t have a table based on it, ergo no constraints on it.

    I guess the answer would be to make the object type Instantiable. Then you can create a table based on it with constraints. Of course, these constraints won’t be “inherited” by the child types.

    All that said, however, I personally avoid Oracle object types when I can.

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

Sidebar

Related Questions

I have a JSON string that looks like this: { package1: { type: envelope,
I have a Drupal setup like this: Content type: Apartments Vocabulary: Areas , that
I have code that I want to look like this: List<Type> Os; ... foreach
I have a rowset that looks like this: defaultdict(<type 'dict'>, { u'row1': {u'column1': 33,
I have a Map that uses a Set for the key type, like this:
I have created a type like this: TypeBuilder tb = moduleBuilder.DefineType(myname, TypeAttributes.Class | TypeAttributes.Public,
I have created this type: create or replace type PRODTABLE as table of PROD_OBJ;
I'm trying to create instances of objects that have the same base type like
I have this type which is basically a struct { int x,y,z; } that
I have this code that works well: {livre:empty_name} $.ajax({ url: sent.php, type: post, dataType:

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.