cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Windchill Number Column Convention

pwilliams-3
12-Amethyst

Windchill Number Column Convention

Can someone explain to me the reasoning behind the A#A#, A#B#, etc... convention on table columns in the Windchill database? I'm assuming they are primary/foreign keys of some sort but how does one "map" them from one table to another?

Patrick Williams | Engineering Systems | o: 616.698.3766 | c: 616.947.2110
[cid:image001.jpg@01CCE59F.9049ACD0]

6 REPLIES 6

Curious on this also...

Are you asking why the column names are like ID3A5 and ID2A2?


Sent from my Verizon Wireless BlackBerry

Yes. I believe there is a convention to the A/B/C/D/... and the subsequent numbers.

Patrick Williams | Engineering Systems | o: 616.698.3766 | c: 616.947.2110
[cid:image002.jpg@01CCE5A2.AC48B310]

From: David DeMay [
BenLoosli
23-Emerald II
(To:pwilliams-3)

Yes, why use cryptic naming for the tables/column names?

Thank you,

Ben H. Loosli
USEC, INC.

From: David DeMay [


Not being a former PTC employee, and knowing this was technically acquired software that has essentially been rewritten, I can only share my technical perspective:

Rational Rose from IBM is used to model the java object to relational mapping in schema. They are all primary and foreign keys. 95% of the time there is a cooresponding column ending with same characters classnamea2a2 etc.

You know to join the two tables by these keys.

Back to modeling, all link classes that provide more efficent lookup of one-to-many or many-to-many relationships typically extend the ObjectToObjectLink class. It has in it model wise a roleAObject and a roleBObject. This simple fact generates well over half of the column names for IDA3B4 and IDA3A4,etc.

You'll always notice the primary key is IDA2A2. I can only guess that IDA stands for IBM InfoSphere Data Architect and 2A2 is the hexadecimal identifier.

Clues are always going to be found in the model ( high abstract levels like Persistable and WTObject).

What I can tell you is that as you add additional columns to a modeled object that alias other modeled objects, the number used increments: for 3 references, you might find and IDA3A3, IDA3A4, and IDA3A5 in same table and same columns names used on different tables for different purposes.

My honest guess is the entire notion of the columns named the way they are have to do with the tools used to generate the object model, and not anything deliberately done by PTC.

I could be wrong and surprised, but I doubt you'll find anyone that will give you 'the answer' as many a folk have moved on from PTC in early days.


Now that Rational Rose is not required and you may use Java Annotations starting in WC 10, could these change? Not sure, the clue also could be in the wt.pds package and it handles conversion to SQL for object relational mapping.

Regards,
David DeMay



Sent from my Verizon Wireless BlackBerry

On 02/07/12 12:51, Williams, Patrick wrote:
>
> Can someone explain to me the reasoning behind the A#A#, A#B#, etc...
> convention on table columns in the Windchill database?  I'm assuming they are
> primary/foreign keys of some sort but how does one "map" them from one table
> to another?
>

If you look at the column preceding you most likely will find a clue. For
example take a look at the IDA3MASTERREFERENCE column in the epmdocument table.
Notice the preceding column is titled CLASSNAMEKEYMASTERREFERENCE and the data
contained in the column is wt.epm.EPMDocumentMaster. This means that the
IDA3MASTERREFERENCE column is the "key" to the master data in the
epmdocumentmaster table.

Also looking at the IDA2A2 column in the epmdocument table you will not the
preceding column is named CLASSNAMEA2A2 and the data is wt.epm.EPMDocument. This
means that this column is the key for the epmdocument table (the table we are
looking at).

Most of the time the classname such as wt.epm.EPMDocumentMaster or
wt.epm.EPMDocument has a corresponding oracle table.

> *Patrick Williams*| Engineering Systems | o: 616.698.3766 | c: 616.947.2110
>
> sc_inc_black_sig_1_alt
>
>
> ----------


--
------------------------------------------------------------------------
Randy Jones
Systems Administrator
Great Plains Mfg., Inc.
1525 E North St
PO Box 5060
Salina, KS USA 67401
email: -
Phone: 785-823-3276
   Fax: 785-667-2695
------------------------------------------------------------------------

Announcements


Top Tags