Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Set custom datatype attributes
Set custom datatype attributes [message #1681326] Tue, 17 March 2015 09:06 Go to next message
Wolfgang Grossinger is currently offline Wolfgang GrossingerFriend
Messages: 19
Registered: July 2009
Junior Member
Hi there!

My problem is as follows:

I created some custom DataTypes with a few properties to specify additional Information, in my case to generate additional database relevant data (for example the concrete length of a field).
So far, so good, but when I use one of the custom types, I am not able to find out how to use the additional attributes to specify a concrete field length. I just can't find out where I can set them...
So my question is: where can I set attributes of a custom DataType or is there a special trick to define a custom DataType to do so?

Thanks,

Wolfgang
Re: Set custom datatype attributes [message #1681854 is a reply to message #1681326] Tue, 17 March 2015 13:41 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, Wolfgang,

What do you mean by "us[ing] one of the custom types"? Is this
DataType the type of Stereotype attributes in a Profile, and you want
to set its values in applications of that Stereotype in a model? Are
you generating (Java? C? C++?) code from your UML class model?

Cheers,

Christian

On 2015-03-17 09:07:01 +0000, Missing name Mising name said:

> Hi there!
>
> My problem is as follows:
> I created some custom DataTypes with a few properties to specify
> additional Information, in my case to generate additional database
> relevant data (for example the concrete length of a field).
> So far, so good, but when I use one of the custom types, I am not able
> to find out how to use the additional attributes to specify a concrete
> field length. I just can't find out where I can set them...
> So my question is: where can I set attributes of a custom DataType or
> is there a special trick to define a custom DataType to do so?
>
> Thanks,
>
> Wolfgang
Re: Set custom datatype attributes [message #1681922 is a reply to message #1681854] Tue, 17 March 2015 14:15 Go to previous messageGo to next message
Wolfgang Grossinger is currently offline Wolfgang GrossingerFriend
Messages: 19
Registered: July 2009
Junior Member
Hi Christian,

I solved the problem. What I want to to is to generate Java Code, but with annotations for JPA, so I need some extra information about the DB-Layout.
I was just wrong with my assumption, that I can use a UML-DataType for that. What I have to do is to define separate Stereotypes that extend Property, define the additional attributes there and apply the according Profile/Stereotype on my classes where I want to specify the additional information.

Greetings,

Wolfgang
Re: Set custom datatype attributes [message #1681943 is a reply to message #1681922] Tue, 17 March 2015 14:26 Go to previous message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, Wolfgang,

Thanks for replying, and I'm glad you've got it solved. That sounds
about right to me. :-)

Christian

On 2015-03-17 14:15:46 +0000, Missing name Mising name said:

> Hi Christian,
>
> I solved the problem. What I want to to is to generate Java Code, but
> with annotations for JPA, so I need some extra information about the
> DB-Layout.
> I was just wrong with my assumption, that I can use a UML-DataType for
> that. What I have to do is to define separate Stereotypes that extend
> Property, define the additional attributes there and apply the
> according Profile/Stereotype on my classes where I want to specify the
> additional information.
>
> Greetings,
>
> Wolfgang
Previous Topic:SysML Package merge
Next Topic:Customize palette (EMF-based)
Goto Forum:
  


Current Time: Wed Apr 24 17:45:47 GMT 2024

Powered by FUDForum. Page generated in 0.03490 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top