Class diagram for database objects.
Hi,
I am creating a diagram from the tables in the database in Oracle Jdeveloper 10g. This will basically give me a ER diagram. When I drag and drop a table - say EMP - i get a window - "Create from database object" - which gives me a few options. I selected the "Offline database objects" option. The table appears in the class diagram sheet with the table name, it's columns and the constraints.
Now when I remove this object (table EMP) and then again try to drag and drop the same object as above, I get the object on the sheet as EMP1 and not EMP and also the constraints are renamed. It does not allow me to change the name to EMP. It gives a message that -"TABLE names must be unique" and the table name is renamed to EMP1.
I want the name as EMP only. How do i do it?
Thanks,
Vinay
Vinay,
It's because in the first step, you deleted the table from the diagram, but not from the offline database. Now, when you drag a table from the database connection, it will need to create a new offline table. Instead of dragging from the DB connection, drag it from the offline database (it should already be there from the first step). Alternatively, delete the offline table as well as part of your first step (deleting the object from the diagram).
John
Similar Messages
-
Support for database objects shall be installed
Hello,
my problem is the following:
Support for Repository (Core) Objects is installed,
but I want to install the support database objects, too.
Can you help me with that?
ThanksHenrik,
I assume you mean the Designer model, as this provides a structured database model, along with many other elements. You are given the option to install the Designer model along with the Core model when you initially installed the repository using the Repository Administration Utility.
regards,
David -
How to reload class file for java objects in CF MX7
I'm trying to create a simple java object for use in a CFML
page. According to the topic "About ColdFusion and Java objects" in
the CF developer's guide, I can compile my java module and put the
.class file in the CFusionMX7/wwwroot/WEB-INF/classes directory and
it'll be dynamically reloaded any time CF sees a new .class file
there. But the dynamic reload isn't happening; I have to restart
the CF server to get it to pick up a new version.
I don't believe this directory is in the "general JVM
classpath"; I don't find "classes" in the Java Class Path in the CF
Administrator's System Information page. And I have all the caching
options turned off on the "Server Settings > Caching" page, if
that has any bearing on it.
Are there any known issues around this dynamic reload
capability, or maybe a more definitive way to make sure the
WEB-INF/classes directory isn't in the classpath?
Thanks,
JamesYes, I understand. But if I'm reading it correctly, what
you're saying seems to contradict the documentation
http://livedocs.adobe.com/coldfusion/7/htmldocs/00001561.htm
ColdFusion dynamically loads classes that are either .class
files in the web_root/WEB-INF/classes directory or in JAR files in
the web_root/WEB-INF/lib directory. ColdFusion checks the time
stamp on the file when it creates an object that is defined in
either directory, even when the class is already in memory. If the
file that contains the class is newer than the class in memory,
ColdFusion loads the class from that directory.
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_18228&sliceId=1
Dynamic class reloading for Java servlets classes and
forcfobject (sic) Java classes is disabled by default in
ColdFusion MX. To enable dynamic class reloading, do the following:
Also, I seem to recall that setting worked in a prior
version. Though I would have to test it again on another machine to
be certain. -
Is there any best practice or standard for database object naming ?
Hi
Thank you for reading my post
is there any standard or best practice for databse objects naming ?
for example how should we name columns of a table ? should it be like TOTAL_VOTE or TOTALVOTE and many other items.
Thankswhat does oracle suggest as a naming schema for tables , fields , views. indexes , tablespaces , ... If you look at the data dictionary you will see that not even Oracle keeps rigidly to any specific standard, although there are tendencies :)
"The nice thing about standards is that there are so many of them to choose from."
-- Andrew Tannenbaum
Cheers, APC -
SE14 - mass check for Database objects
Dear Gurus
We have a lot of tables, that have error/problems in check DB14->Check->Database object
How can I find all problematic tables in single report?
Regards
Vladimiryou can use report RUTDBCHK. It does the se14 functionality. Maybe debugg some and you will find the corresponding FM related, which would in turn return an error / information about the status
-
Creating OO database objects by using class diagrams in JDeveloper
I am new to use JDeveloper. I create UML class diagrams (using Entity Object) in JDeveloper, which has inheritances and associations, and then choose Create Database Objects... try to create oo database, but it only create some tables in the database, not any object types ... .
What do I missed? Or I have to create those oo database objects manually?
Thanks.Tony,
You can use database object types with BC4J, but only to implement BC4J domains (these can map to object types).
For performance reasons, it is less practical to generate a table of object types for a complete EO. Most users view the BC4J layer as the 'pure' OO model, and map to a relational datamodel for optimal performance.
Below some steps to create a DB object type for a domain:
You can create Oracle Object Types in the database by creating a business component domain and then forward generating the database object. Forward generation of object tables from entity objects is not supported. To forward generate an Oracle Object Type from a new domain: In the System Navigator, right click on your business component package and choose Create Domain. When the Domain Wizard opens, review the information on the Welcome page and click Next. Enter a Name and Package for the domain or accept the defaults. Select the checkbox for Domain for an Oracle Object Type. Do not select any items on the Available Types list, as you are creating a new one. Enter the name of your new type in the Selected Type field. Click Next. On the Settings page, click New. Provide a name in the New Domain Attribute box. Select the appropriate Java type a[i]Long postings are being truncated to ~1 kB at this time. -
How to create OO Database from class diagrams?
I am new to use JDeveloper. I create UML class diagrams (using Entity Object) in JDeveloper, which has inheritances and associations, and then choose Create Database Objects... try to create oo database, but it only create some tables in the database, not any object types ... .
What do I missed? Or I have to create those oo database objects manually?
Thanks.If the Location of the datafiles is similar to that of source database then you can consider below steps
Create Oracle Service using oradim
set ORACLE_SID=NEWDB
oradim -new -sid NEWDB -intpwd passwordofthesys -startmode M
Connect to the RMAN
rman>rman target /
restore spfile/pfile and control file from backup
rman>restore spfile to pfile '_localtion of the initNEWDB.ora_' from '_location of the SPFILE Backuppiece_';
rman>startup nomount pfile='localtion of the initNEWDB.ora';
rman>restore controlfile from 'file location of the controlfile Backuppiece';
rman>alter database mount;
Catalog the RMAN backuppiece of source database
rman>catalog backuppiece '_location of the rman backuppiece of source database_ ';
resotore & recover database
rman>restore database;
rman>recover database;
open the database with reset logs
rman>alter database open resetlogs;
rman>create spfile from pfile;
rman>shutdown immediate;
rman>startup;
==================
If you have access to source database then you can clone using below rman command:
+rman target _<source database>_ auxiliary _<new database>_+
rman>duplication target database to _<your new database name>_;
==========
If the location of the datafiles and logfiles are different from source database then you need to add db_file_name_convert and log_file_name_convert to the pfile before starting the recovery process. -
Abstract Class and polymorphism - class diagram
Hi,
]Im trying to draw a class diagram for my overall system but im not too sure how to deal with classes derived from abstract classes. I'll explain my problem using the classic shape inheritance senario...
myClass has a member of type Shape, but when the program is running shape gets instantiated to a circle, square or triangle for example -
Shape s = new circle();
since they are shapes. But at no stage is the class Shape instantiated.
I then call things like s.Area();
On my class diagram should there be any lines going from myClass directly to circle or triangle, or should a line just be joining myClass to Shape class?
BTW - is s.Area() polymorphism?
Thanks,
Conor.Sorry, my drawing did not display very well.
If you have MyClass, and it has a class variable of type Shape, and the class is responsible for creating MyClass, use Composition on your UML diagram to link Shape and MyClass.
If you have MyClass, and it has a class variable of type Shape, and the class is created elsewhere, use Aggregation on your UML diagram to link Shape and MyClass.
If you have MyClass, and it is used in method signatures, but it is not a class variable, use Depedency on your UML diagram to link Shape and MyClass. The arrow will point to Shape.
Shape and instances of Circle, Triangle, Square, etc. will be linked using a Generalization on your UML diagram. The arrow will always point to Shape.
Anything that is abstract (class, method, variable, etc.) should be italicized. Concrete items (same list) should be formatted normally.
BTW, the distinction between Composition, Aggregation and Dependency will vary from project to project or class to class. It's a gray area. Just be consistent or follow whatever guidelines have been established.
- Saish -
Jato 1.2 UML Class Diagrams
Hi All,
I have put together some UML class diagrams for JATO 1.2. You may find them
useful. Please let me know if you spot any errors.
Regards,
Dennis Parrott.
Dennis Parrott
Senior Consultant
iPlanet Professional Services
Sun Microsystems Limited
Guillemont Park
Camberley Mobile: +44 (0)7765 221938
GU17 9QG Email : dparrott@i...
iPlanet
e-commerce solutions
www.iplanet.com
[Non-text portions of this message have been removed]Hi Dennis--
Only we can post files for the group. We'll be happy to do so, or if you
would rather host a public site for them, we can post a link in the group.
(Looking forward to seeing the diagrams.)
Todd
----- Original Message -----
From: "Dennis Parrott" <dparrott@i...>
Sent: Monday, December 17, 2001 7:41 AM
Subject: RE: [iPlanet-JATO] Jato 1.2 UML Class Diagrams
Note the deliberate mistake - the document was not included - actually it
was removed - How can I publish this to the group?
Dennis Parrott[PARA]Senior Consultant[PARA]iPlanet Professional
Services[PARA]Sun Microsystems Limited[NL]Guillemont Park[NL]Camberley
Mobile: +44 (0)7765 221938[NL]GU17 9QG Email :
dparrott@i... iPlanet [PARA]e-commerce solutions
[PARA]www.iplanet.com
-----Original Message-----
From: Dennis Parrott [mailto:<a href="/group/SunONE-JATO/post?protectID=114154113180127190050057203026021130134026057192209171188199">dparrott@i...</a>]
Sent: 17 December 2001 15:35
Subject: [iPlanet-JATO] Jato 1.2 UML Class Diagrams
Hi All,
I have put together some UML class diagrams for JATO 1.2. You may findthem
useful. Please let me know if you spot any errors.
Regards,
Dennis Parrott.
Dennis Parrott
Senior Consultant
iPlanet Professional Services
Sun Microsystems Limited
Guillemont Park
Camberley Mobile: +44 (0)7765 221938
GU17 9QG Email : dparrott@i...
iPlanet
e-commerce solutions
www.iplanet.com
[Non-text portions of this message have been removed]
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
Choose from 1000s of job listings!
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp -
.java - UML Class Diagram
Hello for my university exam, i developed an application, now i need to print the UML class diagram, so I was searching around for a tool to create the class diagram for my source code.
I had tryed the software "borland together trial edition" for eclipse IDE, but i've two problems..
1) it creates UML class diagram just for a package without expanding subpackages..
2) it doesn't give an easy way to export the created UML class diagram, the only "good" format for printing it can export is a "buggy" SVG...
Do you know better (and maybe free) software to create the UML class diagram from my sources? (or maybe you know a way to solve the two problem i said?
thank yoU!!!There's a package on sourceforge call JReFactory which might do the job.
-
Export database objects in Version 3.0
I'm fairly new to APEX and I need to export some database objects along with my application. I currently have an application on Oracle's site and I need it (along with database tables and sequences) exported to a server that we have onsite. While I can see how to export the application, I'm having trouble understanding how to export my database tables (both structure and data) and sequences. Can somebody point me in the right direction?
Thanks,
BrianBrian,
You can navigate to Home>Utilities>Data Load/Unload>Unload to dump (unload) tables to files in text or xml format. You can go to Home>Utilities>Generate DDL to generate DDL for database objects in your schema.
Scott -
Is XS Project right for Database Schema and tables
Hi Friends
1.As per OpenSAP video it is suggesting to use XS Project for Database objects.
In my case I am planning to do AO Reporting and not creating any UI , is XS project still the right project type.
There is an option for General ->Project - would that be the right one.
2. Also in my UI I am not able to see the Prefrences->SAP Hana Development ->Repository Access to set the regit.exe. I did see couple of post mentioned about it but the response was not very clear , hence asking the question again.
regards
PoonamHi Poonam,
Poonam Hemrajani wrote:
1.As per OpenSAP video it is suggesting to use XS Project for Database objects.
In my case I am planning to do AO Reporting and not creating any UI , is XS project still the right project type.
There is an option for General ->Project - would that be the right one.
Project is used to group all the required development artifacts and the libraries required for them. So based on your requirement you can choose. I think "General" project would suffice your requirement if it is only to create schemas and tables.
But on the other hand if you choose to build an application using XS related libraries you can either choose to import those libraries later or create using a XS project now.
Will wait along with you to see Thomas Jung comments on this.
Poonam Hemrajani wrote:
2. Also in my UI I am not able to see the Prefrences->SAP Hana Development ->Repository Access to set the regit.exe. I did see couple of post mentioned about it but the response was not very clear , hence asking the question again.
Firstly from SP7, it is not required to setup regi.exe file. This file resides in hdbclient folder. So you need to check where you have installed hdbclient to see if you have that regi.exe file and configure it accordingly in the Path ( Preferences --> SAP HANA Development --> Repository Access ) you mentioned.
Regards,
Krishna Tangudu -
No association lines in class diagram
In my class diagram, there are no association lines connecting the classes.
I notice that in the BankApplication tutorial, the class diagram has full lines and dashed lines. The structure in the "Model" folder is different from mine. Will this have any effect?
Model
bankpac
BankAccount
Checking
etcMy structure is:
Model
org
CompanyName
sample
Class1
Class2
Class3
etc"Class1" contains "main"
I selected everything under "Model".sherylsu wrote:
If they are listed under project tree but not shown on diagram, then it could be something wrong with diagram presentation logic The relationships shown in the model tree are the same as shown in the class diagram. That is consistent.
I think the issue is due to way my non-techie mind works.
Here is how I produce diagrams. Most of the projects are samples for a manual, so only contain one class.
1) I select the (only) class for a project, and create the dependency diagram.
2) From the dependency diagram, I reverse engineer every operation for that class in sequence diagrams.
Obviously, the master class sends messages to many other instances of many other slave classes. I assumed that the class diagram for the master would show the aggregation of all the slave classes that appear on all the sequence diagrams. Even if the internal structure of the slave classes (attributes, operations) would not be known, at least the class names would be known.
Even after reading "UML Distilled" and reading the Agile web pages, I still think that would be the case.
It seems that Studio only displays a slave class on the class diagram if the internal structure of the slave is known. Maybe that's the correct convention. -
Is there a TLF Class Diagram available?
Is there a class diagram for TLF classes available? Or is the only documentation the API Reference?
-ChrisThere is not a separate class diagram, although there are some diagrams as part of the API reference. Sorry! Perhaps that is something we should add. There is a diagram of the FlowElements hierarchy on the textLayout.elements package overview, and another diagram in the container in the description for ContainerController. If there are more diagrams you think would be helpful, please let us know -- we can add more if it would be helpful.
-
Hungarian Naming Contentions for UML Class Diagram
UML class diagram should be generic for all the available object oriented language and should not be language dependent. If we follow pure java naming conventions in UML class diagram, which make the UML class diagram Java language dependent not generic.
I am trying to combine Hungarian Naming Contentions with Java Naming Convention so variable name will follow x_y schema where x_ is according to Hungarian notation attached with class attribute, which is named according to java naming standard. This naming standard satisfies UML naming convention and will also help in java programming.
For an example,
i_userNumber Here 'i_' is a Hungarian notation representing type of variable attached with class attribute . This indicates that the attribute is an interger , which is named according to java naming standard.
Feedback PleaseYou're going to get a gozillion answers to this question, and all of them will be both right and wrong to some degree, so I will give you my thoroughly opinionated answer to go along with all the rest.
I am not a fan of Hungarian notation for one fairly fundamental reason. Java is a strongly typed language, thus it doesn't need indicators of type. By putting a type indicator on a variable you create potential problems when you change a data type. Won't happen? I am currently sweeping through a major portion of the application I'm working on changing data types for masses of variables because the database guys took a whim to change the data type in the database. If I were using Hungarian notation, not only would I have to change the type, the parameter type and return type for the accessor mutator methods, I'd also have to change the name, the name of the accessor and mutator methods, and anywhere that the variable is modified directly.
The name of a thing should speak for its self. It shouldn't need an indicator flag on the front to tell me what it is.
But you're talking about UML not Java code. The same thoughts apply. The name should speak for the thing it represents without the need for additional clarification.
Hungarian notation in my not so humble opinion adds complexity by requiring the development team to spend effort learning, understanding, thinking about, processing, manipulating, touching, dealing with what is essentially a thoroughly artificial naming scheme.
Just my thoughts on the subject. Your milage may of course vary wildly.
Maybe you are looking for
-
Failed to revert logical volume group while merging partition
Hi All, Previously, on my macbook pro, I partitioned my disk for win7 for my dual operation system and only left 120 GB for OS, now I want to delete win7 and return disk space to OS. Currently my OS is yosemite. I have already deleted disk space for
-
Can't charge the actualization page of the App Store.
Since few days I can't charge the actualization page of the App Store. AnyOther page works normally.... O_o
-
5.0.5 to 6.0
After my Windows XP decided to give me a blue screen, I'm having to reinstall my older programs before I can install later updates. So far, I have Acrobat 5.0.5 running fine, and I want to install my Acrobat 6.0 Standard upgrade. (I need to do this
-
External task - prepare method - decode-encode
In the prepare method, I write code refer to thread: How to invoke a java application in the middle of the process Using Papi to operate with process How to invoke a java application in the middle of the process If the error is caused by decoding and
-
I have problems with the function keys of my MacBook Air 13" Mid2011
i have this problem, anybody can help me? THANKS!!!