Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6706065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:28:35+00:00 2026-05-26T07:28:35+00:00

Background: I’m using Sparx Enterprise Architect 8.0. When I mark a member of a

  • 0

Background: I’m using Sparx Enterprise Architect 8.0. When I mark a member of a domain class as transient, the resulting generated code uses the volatile keyword instead of transient. This is correct according to Enterprise Architect Java conventions.

How can I define transient attributes using EA and have the generated code to use the Java transient keyword for them?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:28:36+00:00Added an answer on May 26, 2026 at 7:28 am

    Define a tagged value on the attribute (not the class), named transient with value true.

    This works in 9.1; unfortunately I don’t have an 8.0 installation to try this on. You can check it yourself by looking at the relevant generation template: select Settings – Code Generation Templates, then pick Java in the language drop-down (top left). In the Templates list, find the one called “Attribute Declaration.”

    If there is a line starting with %attTag:"transient", the above should work. If not, you can add it yourself if you know how (code generation templates are not a good area for experimentation), but I don’t want to post Sparx-copyrighted material here.

    Sadly, using tagged values on attributes means you can’t see this property in diagrams or the project browser. That’s just a fact of life, but it might be worth the bother to hassle Sparx about putting in some sort of way of showing attribute tags.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background : I'm trying to convert some JavaScript code which uses the the Crossfilter
Background: I'm using the (fantastic) Vim plugin python-mode , which includes the pep8 linter.
Background - I am using paramiko to put files on a bunch of remote
Background: Using unix, codeigniter from localhost. I'd like to run a controllers via a
Background I am writing code in VS 2010, .NET 4, C#. Also, in case
BACKGROUND I'm using VS 2010 on a machine where I installed .Net 4.5 which
Background: I'm using the middleware django-multihost (http://effbot.org/zone/django-multihost.htm) to allow my single django app to
Background information first: We are using a strongly-typed DataSet to manage transaction files. That
Background: I have a code of 64 in my IIS logs which I think
Background I have a calculated value stored in a transient attribute. Every time my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.