| Author |
Message |
|
2006/10/27 15:09
|
|
|
everbored
Joined: 2006/10/27
Messages: 9
Offline
|
|
|
|
Hi,
It seems that the only types I am allowed to assign to an attribute are just the primitive types, for example, String, int, float, boolean.
But why can't I assign a non-primitive type, such as a class, like "Address" or "Money", or some other class already defined in my diagram? Indeed, the application already allows us to select these non-primitive types, but when I try to generate PHP code I get an error saying that the attribute does not have a "supported type".
What are the supported attribute types for the PHP version of DB_VA (please provide the list), and why can I not assign an attribute a type which is a class already in my diagram?
Thanks in advance!
E
|
|
|
|
 |
| |
|
2006/10/27 18:50
|
|
|
Jick
Joined: 2005/04/29
Messages: 2880
Offline
|
|
|
|
Hi everbored,
This is because the object model is closely related to the data model, which end up relating to the database. Although for object model it is possible to have object types, it is not allowed in the database. Therefore only primitive attributes are supported for the attributes in the class diagram. For object references, please use association to link up the related classes.
Best regards,
Jick
|
Visual Paradigm International Ltd.
http://www.visual-paradigm.com
Build Quality Applications Faster, Better and Cheaper |
|
|
|
 |
| |
|
2006/10/27 18:57
|
|
|
everbored
Joined: 2006/10/27
Messages: 9
Offline
|
|
|
|
Hi Jick,
Thanks, but I was wondering if you could provide me with a list of the allowed types, similar to section 6-5 in the designer's manual but for PHP.
Thanks,
E
|
|
|
|
 |
| |
|
2006/10/28 09:48
|
|
|
Jick
Joined: 2005/04/29
Messages: 2880
Offline
|
|
|
|
HI everbored,
The supported attributes types are the same as those for Java. We will help maps the types to database type.
Best regards,
Jick
|
Visual Paradigm International Ltd.
http://www.visual-paradigm.com
Build Quality Applications Faster, Better and Cheaper |
|
|
|
 |
| |