Questions tagged [supertype]

57 questions
2
votes
2 answers

Super Type / Subtype : Data modeling

I have a Supertype / Subtype relationship in which one of the subtypes doesn't have any attributes, so I am unsure on how this would be modelled. I have a supertype called Tracks in which a track can be one of 3 subtypes, Audio , Video , Text. Both…
2
votes
1 answer

How is the Subtype Discriminator used?

Suppose I have a supertype table with many subtype tables. I'm interested in making them disjoint subtypes in that the supertype table only points to one of the possible subtype tables per row. On the web I came across descriptions of the subtype…
user17753
  • 2,865
  • 7
  • 30
  • 65
1
vote
2 answers

Programming to supertype in c#

I have an OO problem here. I have two sessions which has common properties and specific properties. I created a base class and encapsulated all the common properties/methods. Two session has a common type called Ranges, which again has common…
sundar
  • 215
  • 2
  • 10
1
vote
1 answer

EntityFramework 4.3 Supertype Late Initialization

I'm using EF 4.3 with CodeFirst and I have a supertype/subtype model similar to this one: public Person { long Id { get; set; } [Required] string Name { get; set; } } public Costumer : Person { string SomeData { get; set; } …
Andre Vianna
  • 1,680
  • 2
  • 15
  • 28
1
vote
1 answer

How do I setup super- and sub-type relationships in CodeIgnitor's DataMapper ORM?

I'm running an online food journal where users can record journal entries. There are four types of entries: food entries, exercise entries, measurements, and completed tasks. Entries have several attributes in common (e.g., id, amount, unit_id,…
1
vote
1 answer

The method onKeyPreIme(int, KeyEvent) of type myClass must override or implement a supertype

I am trying to create a lock screen in an app so that when the user requests it (remotely) the phone will lock itself with a preset password. I'm trying to use the onKeyPreIme method because I read that onKeyDown() and other related methods…
Jakar
  • 11
  • 1
  • 3
1
vote
2 answers

How to fix the error about supertype when implementing a method with parameter E e?

I need to create an array-based stack that gets the method from an interface. There I want to implement the push(E e) method from the interface, but I am getting following error: The method push(E) of type ArrayStack must override or implement a…
1
vote
3 answers

Can Lucidchart make Enhanced ER Diagram (EERD)? if Yes then how to model supertype, subtype and inheritance?

I am start using Lucidchart for designing erd for my assignments. I prefered lucidchart for its simplicity. But my diagram has an extended relationship and I can't find anything to illustrate this relation in Lucidchart. I find out this Articale…
1
vote
1 answer

What are the benefits of super type sub type table

Suppose any one designing the Database(ER model) and he have three tables CHECKING-ACCOUNT, SAVINGS-ACCOUNT, and LOAN-ACCOUNT. Tables. Suppose he is aware of super type -sub type relationship. So he implemented the super type - sub type. new…
1
vote
4 answers

Supertyping Tables - Is Multiple Inheritance Possible?

It's possible that this question either has a simple answer that's a standard practice, or has no answer because it can't be done for a simple reason, or is otherwise just an interesting thought exercise. I'm currently sitting on the last option,…
David
  • 176,566
  • 33
  • 178
  • 245
1
vote
0 answers

What's the best DB design to model this case of super type/ sub type?

Imagine that you have to model incidents. There's four types of incidents (could be more). They all share some characteristics. So, the main shared fields would be in a supertype table called incidents and there will be one table per incident-type…
Joe
  • 101
  • 1
  • 6
1
vote
2 answers

Subtype Supertype with Oracle Object Type Creation. Limit on the number of subtypes?

I have run into an issue when creating a object type in Oracle 10g that inherits from a supertype. We currently have many object types that inherit from this supertype and recently the compiler started throwing the following errors ORA-30745: error…
TampaRich
  • 753
  • 2
  • 9
  • 22
1
vote
2 answers

How do supertype generics in Java work?

I've been testing supertype generics with Java, but I've come to a roadblock. This is the sample code I was testing: import java.util.*; class GenericTests { public static void main( String[] args ) { List list3 = new…
user2403871
  • 13
  • 2
  • 4
1
vote
2 answers

Populate foreign keys for subtype table already containing data

I have tables [Moulds], [Machines] and [SpareParts] each with different attributes/columns. I would like to make them into subtypes and create a supertype table for them called [Assets] so I can reference all of them together in a maintenance…
1
vote
2 answers

view on multiple tables

I am bit stucked with my Lab from Object-Relational dtb. I have this hierarchy: SUPERTYPE EMPLOYEE_TYPE3 ------------------------------ empno number(4) ename varchar(10), job varchar(9), hiredate date, sal number(7, 2), deptno number(2) SUBTYPE…
JS_Diver
  • 425
  • 4
  • 15