jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Mod4j: Modeling for Java using Domain Specific Languages
  • MODFORJ-128

Cannot add references to a business object without properties in the Data contract model

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: Wish List
  • Component/s: DSL for Business Domain, DSL for Data Contract
  • Labels:
    None

Description

In http://jira.codehaus.org/browse/MODFORJ-124 I had a problem creating a reference to 'myself', an incorrect Hibernate mapping was generated. I decided to work around the problem creating a business object without properties but with associations.

In my Data contract, I'd like to do the following

class VacancyRelationDto represents VacancyRelation [
  // has no properties!
  references [ .... ]
]

My current workaround is to add a dummy derived boolean which I also expose to the Dto.

Issue Links

is duplicated by

Improvement - An improvement or enhancement to an existing feature or task. MODFORJ-6 Data Contract Dsl: cannot have a reference without attributes

  • Major - Major loss of function.
  • Resolved - A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Vincent Lussenburg added a comment - 10/Jul/09 8:46 AM

Forgot to mention that an error message tells me I cannot have a Dto with references but without fields.

Show
Vincent Lussenburg added a comment - 10/Jul/09 8:46 AM Forgot to mention that an error message tells me I cannot have a Dto with references but without fields.

People

  • Assignee:
    Jos Warmer
    Reporter:
    Vincent Lussenburg
Vote (0)
Watch (0)

Dates

  • Created:
    10/Jul/09 8:45 AM
    Updated:
    30/Jul/09 6:06 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.