How can i implement this within a class diagram? When designing Nation as a class with stereotype <> and using the Type Nation as type of an attribute in some other class, code generation complains about
[10:35:03] [Error] foerderung: AttributeClass Antrag’s attribute (nation : Nation) must specify a supported type.
Thanks for your post. It seems that you have raised the same question to our support team (Ticket ID: BLS-241525), and our members in Europe support team has response to it already. If I’m right, please check the mail sent from our Europe member. Thanks!
I’m right now facing the same problem. Is there any progress or answer/tip you could share on this? Right now I cannot figure out how to gerneate orm code when using an enumeration type for an attribute on a ORM persistable class.
thank you for your answer! The link you provided contains some interesting information, but apparently it does not help me out. The article shows how to include database specific types in my erd model. But my problem is, that I like to do OR-Mapping starting from a class diagram (ie. for hibernate) and I want to tell VP-UML to include user-defined type mappings (extending the hibernate class/interface UserType) to use for any enumeration attribute type.
I attached a sample screenshot of what I’m trying to do. If I try to generate ORM code from this example it does not work because of “Class MarketStatus’ attribute (ACTIVE) must specify a supported type.” But actually I have implemented a user defined type mapping that maps the enumeration to a varchar and would specify this in the hibernate xml mapping. I don’t know how to tell VPUML to use this mapping.
I’m not good at describing my problem, I hope you know what I mean
We support defining User Type and Parameterized Type in the latest version (VP Suite 4.0). I have prepared some flash movies to show you how to do. Please watch below:
Thank you very much for your answer! I really like watching those videos! And of course this feature is really great. Apparently my version of vp uml is that of suite 3.4. So I guess I cannot use this feature until I upgrade.
Another note: The code that is generated for the enumeration is not implemented with a java 5 enumeration class. It’s using “the old” way to code enumerations (which is probably that what’s going on under the hood of the enumeration class). But I would actually prefer to use java5 enumerations. Will this be possible?
Thank you for coming back. I have passed your request to our team for further feasible study. I will let you know when there is any news. Feel free to let me know if you need other helps.
I would like to let you know that we will support ORM Java 5 enumeration in next release (VP Suite 4.1), you will be able to get the ORM Java 5 enumeration code by <> + <> in VP Suite 4.1.
BTW, I left a private message for you, please have a check.
Thanks Lilian, this post help me to, but i need this specifically for postgresql (8.4…). Is it possible you please point out how to use Enumerations and User types in postgresql ?
I experience more than one problem. Firstly, the connection from vp-uml to my postgresql database won’t work. Well, the SDE for Eclipse work though. But i prefer using the vp-uml.
Thanks for helping!
Hello,
I have the same problem, i need to generate enumerations from class diagram to ERD diagram, and eventually generate hibernate code but i am getting th following error [14:34:13] [Error] name: Attribute Class Color’s attribute (name : ColorName) must specify a supported type.
ColorName is the enumeration class.
none of the above urls are working.