modeling

Designing classes from One-Many table with extra fields

How do I model any additional properties from One-Many relationships in the database back into classes? For example I have 3 tables Model, Manager and Model_Manager. The Model_Manager table has ModelId, ManagerId and two extra properties - Percentage and Owner. At first I created two classes Manager and Model and the Model class contai...

What are recommendable data modeling tools and techniques for a Flex / Java web app?

I'm looking for a comprehensive setup that you've successfully used already. I've already loads of hints as to what building bricks I might use, but I'm not sure how to put it all together. Tools that need to be bought are OK, too. Details: I'm developing a Flex front end client for a Java server application and I have a set of model c...

Can I express "may / may not contain" rules spanning multiple levels in XML Schema?

I have a hierarchy of objects that are transmitted via XML. The hierarchy rules are easy to express in XML Schema by stating which element may contain which child elements. A simplifed example of the XML data would be (the actual object data is contained in attributes and omitted for brevity): <root> <channel> <router> <mess...

"Entity" vs. "entity information" dichotomy in a business model - is it really necessary in an "analysis model"?

My question is not exactly about programming per se, but I think SO has already overgrown its "programming-only" scope... For those who don't like to read long introductions, here is my attempt to formulate the question without any background - the chances are some of you could understand right away what I am asking about: Q: When deve...

What are the advantages of LePUS3 over UML?

When searching online for object oriented concepts such as the composite design pattern I often found them represented in the LePUS3 notation. I am not really familiar with this modeling language. Is it something I should prefer over UML? ...

UML: modeling an activity that creates/changes other activities

Let's say I am to build a behavioral model of some organization: in particular, I am to build a bunch of activity diagrams that describe all those activities that take place in the organization (activities like "bidding", "order fulfillment", "shipping", etc.). Now, one of the key activities in the organization is the one that includes ...

How do I express a polymorphic association in JPA?

A polymorphic association is similar to a foreign key or many-to-one relationship, with the difference being that the target might be one of a number of types (classes in the language, tables in the db). I'm porting a database design I've been using for some years from PHP to Java. In the old code, I had rolled my own ORM, which wasn't ...

Do experienced programmers still use flowcharts to work out the order of operations, or do they do it in their heads?

Is this a legit tool or is it a crutch that I will eventually grow out of needing? Update: By order of operations, I mean: launch app read prefs calculate value from prefs write prefs to file... Right now, I draw diagrams at the method level as well as the app level when I'm having trouble visualizing the program flow. ...

Does anyone know a good/easy/free/open 3d modeling program?

Hello, Does anyone know of an easy 3D modeling application like sketchup but is opensource? I don't have time for learning blender ( guess I never will ): and I'm a fan of having multiple small tools do their part of the job ( first cut the plank using the saw the nail it using the hammer :) ). Edit: I also might need to do some modi...

Data Warehouse: Modelling a future schedule

I'm creating a DW that will contain data on financial securities such as bonds and loans. These securities are associated with payment schedules. For example, a bond could pay quarterly, while a mortage would usually pay monthly (sometimes biweekly). The payment schedule is created when the security is traded and, in the majority of case...

C#: How to model a Many to many-relationship in code?

Suppose I have 2 tables in a database. eg: Dog & Boss This is a many to many relationship, cause a boss can have more than 1 dog, and a dog can have more than 1 owner. I am the owner of Bobby, but so is my wife. But many to many is not allowed, so there is a helpertable: DogsPerBoss How to modle this in code? Class Boss can have a col...

Use Cases With 'Time' As An Actor

What are the best practices for using use cases to model system behavior that is executed periodically based on a schedule (rather than executed as a direct result of an explicit user interaction)? If 'time' is modeled as an actor, what are accepted approaches to describing how time is used to trigger the use case (e.g. whether the per...

How to model an n-to-n relationship in Objective-C?

I am trying to model an n-to-n relationship in Objective-C. Suppose I have two entities: Movie and Theater. A Movie has an array of Theaters and a Theater has an array of Movies. How do I do this in Objective-C to 1) get the relationship correct and 2) make sure memory is managed correctly. ...

Website UML example

Can you give me an UML example of a website or REST server. Thx! ...

Project Planning? Diagrams and Such.... Best tool?

Hey there, I started a personal Java WEB project and I'm trying to generate some documentation before I start off. I'm looking for some cool, flexible and free Diagram tool. Cool -> Shapes are colorful and could be used to be presented directly to a client. (Those line based- black/white are awful) Flexible -> I'm looking for somethi...

Dynamically Loading EMF Models

I have a backend system which i access via a REST based API and i am returned a resource. This is an EMF resource (an XMI representation). The problem is that i cannot, at design time, assume the metamodel for this resource - as the metamodel in the backend system can change without notice. I am wondering if i can, first, read the metam...

Why isn't IDEF popular while UML is?

I've found out about IDEF just yesterday and wondered immediately why it's not more popular than UML. Judging from documents, IDEF is at least as suitable for software modeling as UML is, but is mature and stable for about 30 years now, as opposed to UML. Is this one more case of "popular vs. powerful" like all the discussions about "$l...

What design models to create before TDD?

Summary: What models and diagrams have you included and/or delivered in your TD -design vs -development, and why? Details: New 4-developer project, in a shop where we're gradually making progress in getting management to graduate from "buy in" to "action" in the TDD adoption/expectation. I'm (a developer) wanting test-driven design f...

Associating Two Models in Rails (user and profile)

I'm new to Rails. I'm building an app that has a user model and a profile model. I want to associate these models such that: - After the user creates an account, he is automatically sent to the "create profile" page, and the profile he creates is connected to only that particular user. - Only the user who owns the profile can edit ...

How to model interpretations of rap music

I just started working on a website that will help people understand what rappers are talking about. Users will see the lyrics to a rap song and they'll be able to click certain lyrics to see an explanation. Here's a screenshot (you can also check out the site itself here): (Original lyrics censored; click here to see them) Anyway, m...