Questions tagged [datamodel]

According to Hoberman (2009), "A data model is a wayfinding tool for both business and IT professionals, which uses a set of symbols and text to precisely explain a subset of real information to improve communication within the organization and thereby lead to a more flexible and stable application environment.

Filter by
Sorted by
Tagged with
134 votes
6 answers
112k views

What is difference between a Model and an Entity [closed]

I am seeking clarification on the definitions of the terms Entity, Model, DataModel, and ViewModel within the context of software development. Could someone provide a detailed explanation for each of ...
amiry jd's user avatar
  • 27.3k
40 votes
2 answers
14k views

Evaluating HDF5: What limitations/features does HDF5 provide for modelling data?

We are in evaluating technologies that we'll use to store data that we gather during the analysis of C/C++ code. In the case of C++, the amount of data can be relatively large, ~20Mb per TU. After ...
Richard Corden's user avatar
27 votes
3 answers
15k views

Column-family concept and data model

I'm investigating the different types of NoSQL database types and I'm trying to wrap my head around the data model of column-family stores, such as Bigtable, HBase and Cassandra. First model Some ...
Niels van der Rest's user avatar
20 votes
6 answers
2k views

How / if to refactor a Delphi program using only forms and data modules

After years of coding Delphi programs as untestable code in forms and datamodules, including global variables, and the only classes are the forms themselves, containing all the code I need for the ...
Osama Al-Maadeed's user avatar
20 votes
5 answers
55k views

How to load just the last record from entity with LINQ?

I want to fetch value of field named "Gram" from the last record and put its value into a variable, without using any conditions. First I tried int value = int.Parse(Entity.TblGold.LastOrDefault()....
amin's user avatar
  • 1,214
18 votes
8 answers
8k views

Data Model for Boolean Expressions

Do you know a way to organize boolean expressions in a database while allowing infinite nesting of the expressions? Example: a = 1 AND (b = 1 OR b = 2) The expression as a whole shouldn't be stored ...
user avatar
18 votes
7 answers
26k views

How to properly delete and re-add Entity Data Model

newbie to Entity Framework here. Using VS 2010 and SQL Server 2008 express DB. I was having trouble refreshing an Entity Data Model after adding new tables. So, I followed a suggestion I found here ...
David's user avatar
  • 337
18 votes
1 answer
12k views

Object Oriented Database Vs object Relational Database

I wonder how Object Oriented data modeling is different from Object Relational data modeling? Is it something like the pluses of both object oriented and relational data modeling were clubbed to ...
Arnkrishn's user avatar
  • 30.1k
16 votes
2 answers
18k views

Angular 2 define data models for multiple modules

I'm currently starting a new project with Angular 2.0 (release Version) and I want to define some global data models/schemas. As I understand it, Angular 2 has no default way of handling pure data ...
A. Ziegler's user avatar
15 votes
3 answers
6k views

Working with Protocol Buffers and internal data models

I have an existing internal data model for a Picture, as follows: package test.model; public class Picture { private int height, width; private Format format; public enum Format { JPEG, ...
Catchwa's user avatar
  • 5,865
13 votes
4 answers
5k views

asp.net mvc models vs entity framework models

Would it be best practice to create a model in your asp.net mvc - model folder. Use these models with your views and by using a service layer to "adapt" my model to the EF-model. Or have you used ...
David's user avatar
  • 4,235
13 votes
2 answers
4k views

what exactly is a map dimension in a multi-dimensional map?

Like many these days, I am an old relational-model user approaching Cassandra for the first time. I have been trying to understand Cassandra's data model, and when I read about it I frequently ...
pohl's user avatar
  • 3,165
13 votes
1 answer
8k views

Designing a data model for versioned data

I'm looking for some input on the best way to design a data model that revolves around versioned data. There will one-to-many and many-to-many relationships which can all change from version to ...
binarymelon's user avatar
12 votes
2 answers
8k views

MOMC error with XCode4 and Data Model Compile

Whenever I build my project, I'm getting the error: Command /Developer/usr/bin/momc failed with exit code 1 I've read posts here about deleting extraneous Data Model versions as a fix, and nothing ...
beeudoublez's user avatar
  • 1,242
11 votes
5 answers
9k views

Formatting XSD scheme for peer review

I designed a data model which is represented by an XSD scheme. The data model also provides the types that are being used as web service parameters in a WSDL descriptor. I would like to send the XSD ...
poezn's user avatar
  • 4,089
11 votes
3 answers
9k views

InfluxDB data structure & database model

Can you please tell me, which data structure has an InfluxDB und which data model InfluxDB use? Is this key-value model. I read the full documentation and I didn't catch that. Thank you in advance!
Mary Fel's user avatar
  • 129
11 votes
4 answers
5k views

UML Domain Modeling

What is the difference between a domain model and a data model?
RoR's user avatar
  • 16.2k
10 votes
3 answers
6k views

Generate code for core data attributes in xcode 4

In xcode 3 there was a helpful feature in the data model builder where you could highlight some attributes/relationships in an entity, right-click, and choose to copy method and property declarations ...
GendoIkari's user avatar
  • 11.8k
10 votes
1 answer
51k views

update/change array value (swift)

Data Model class dataImage { var userId: String var value: Double var photo: UIImage? var croppedPhoto: UIImage? init(userId:String, value: Double, photo: UIImage?, croppedPhoto: ...
Aldo Lazuardi's user avatar
10 votes
4 answers
1k views

An alternative to hierarchical data model

Problem domain I'm working on a rather big application, which uses a hierarchical data model. It takes images, extracts images' features and creates analysis objects on top of these. So the basic ...
Steed's user avatar
  • 1,290
10 votes
5 answers
7k views

Xcode Data Model Editor not appearing

I'm using Xcode 4.2 and I'm trying to use Core Data. Upon clicking the .xcdatamodeld file I see a strange view instead of the Data Model Editor View. I have reinstalled Xcode 4.2 and have even ...
Sanjiv Jivan's user avatar
  • 1,932
10 votes
1 answer
927 views

Why custom types accept ad-hoc attributes in Python (and built-ins don't)?

I'd like to know why one is able to create a new attribute ("new" means "not previously defined in the class body") for an instance of a custom type, but is not able to do the same for a built-in type,...
Chuim's user avatar
  • 2,033
10 votes
1 answer
269 views

How does ExtendedTableDataModel reset method work? Is there documentation?

How does ExtendedTableDataModel (in RichFaces library) work after sorting or having the actual data changed? I'm asking for good quality documentation first and foremost, but also your own intelligent ...
Lisa's user avatar
  • 4,360
9 votes
2 answers
11k views

difference between User and Account object in social network design? [closed]

I am building a data model for a social networking site and lost of how to model Users and Accounts. 1) User signsup and creates an Account. So we assign the User a user Id like on most social ...
kei30's user avatar
  • 123
8 votes
3 answers
18k views

Creating data model class for database handling

I was just starting to work on an database application when I realized I should implement MVC pattern as the application is quite complex and involves a number of database operations. In regards to ...
user avatar
7 votes
3 answers
8k views

Oracle Data Modeler - Diagram notation

Is there a detailed notational guide for the Relational model diagrams generated by the Oracle Data Modeler? I'm using Oracle Data Modeler to generate Relational Models for an existing database. It ...
mauryat's user avatar
  • 1,640
7 votes
2 answers
2k views

Useful stock SQL data models?

As a parallel to my question about Useful stock SQL datasets, I wonder if anyone has come across a library/web page/wiki/etc. that contains stock SQL data models. For example, the problem of ...
Shadowman's user avatar
  • 11.7k
7 votes
2 answers
836 views

Implementing a data model to prevent common errors

There seem to be multiple ways to implement data models in Clojure: ordinary built-in datatypes (maps/lists/sets/vectors) built-in datatypes + meta-data -- for example: (type ^{:type ::mytype} {:...
Matt Fenwick's user avatar
  • 48.7k
7 votes
2 answers
3k views

How to maintain an ordered table with Core Data (or SQL) with insertions/deletions?

This question is in the context of Core Data, but if I am not mistaken, it applies equally well to a more general SQL case. I want to maintain an ordered table using Core Data, with the possibility ...
Jean-Denis Muys's user avatar
6 votes
4 answers
49k views

How to create ASP.Net MVC DropDownList with required validation

I working with mvc 5. I am loading data from Database Using ORM and fill a drop down list from the controller, like this. ViewBag.Country_id = new SelectList(_db.Countries, "Country_id", "Description"...
Diego's user avatar
  • 2,318
6 votes
1 answer
9k views

Database/model field-name convention in Laravel?

I understand that camel case is the usual convention, as per http://forums.laravel.io/viewtopic.php?id=8857 However, Laravel is using created_at and updated_at for timestamp fields. I'm confused as ...
preyz's user avatar
  • 3,099
6 votes
1 answer
4k views

Why are coordinates of polygon GeoJSON Objects stored in an array of array?

As seen in the official documentation, structure of the polygon GeoJSON object is as shown below: db.someCollection.insert({ type: "Polygon", coordinates: [ [ [0, 0], [3, 6], [...
Dheemanth Bhat's user avatar
6 votes
9 answers
16k views

Stucking on creating connection in model - Power BI

I connect my sql database to Power BI. I got sth like 80.000 rows and I have two additional calculated columns that get previous vales. Here is a code Table.AddColumn(#"Added Custom", &...
Mateusz P's user avatar
  • 211
6 votes
1 answer
7k views

Best practice for storing GPS data of a tracking app in mysql database

I have a datamodel question for a GPS tracking app. When someone uses our app it will save latitude, longitude, current speed, timestamp and burned_calories every 5 seconds. When a workout is ...
24creative's user avatar
6 votes
4 answers
37k views

Why do Excel sheets have to be activated before selection?

This code Sheets(1).Activate Sheets(2).Range("A1").Select will fail in VBA because you can only use Select on an object which is Active. I understand this is the case. What element of the Excel ...
enderland's user avatar
  • 14k
6 votes
1 answer
1k views

How to handle additional columns in join tables when using Symfony?

Let's assume I have two Entities in my Symfony2 bundle, User and Group. Associated by a many-to-many relationship. ┌────────────────┐ ┌────────────────┐ ┌────────────────┐ | ...
dialogik's user avatar
  • 9,524
6 votes
1 answer
2k views

Programmatically adding table to Microsoft SQL Server Compact 3.5 Database

We want to add a table programmatically to our local stored Microsoft SQL Server Compact 3.5 Database. The code below creates the table. using (SqlCeConnection con = new SqlCeConnection("...
Julian Breuksch's user avatar
5 votes
2 answers
11k views

Data Modeling: Supertype / Subtype

Looking to figure out the proper way to model the below requirements. There are 3 types of “parties” to be concerned with, a Fan, a Band, and a BandMember. That BandMember will always be associated ...
swisscheese's user avatar
  • 1,765
5 votes
1 answer
5k views

Qt QML data model doesn't seem to work with C++

I've been working with the examples in http://doc.qt.digia.com/4.7/qdeclarativemodels.html which is the Qt page on QML declarative data models. In particular, I'm working with the objectlistmodel ...
Ted Middleton's user avatar
5 votes
1 answer
8k views

How to create an ElasticSearch Type and make it searchable inside the Index

I'm an iOS Swift developer and I'm using ElasticSearch inside my app. I'm trying to wrap my head around how to declare a type in ES , what's the difference between a type and document, and which is ...
Lance Samaria's user avatar
5 votes
2 answers
1k views

Best Practice: Should one avoid bi-directional relationships? [closed]

I wonder what the best practice is to deal with a data model like this: We have 3 entities: Role User Permission Note that the entities are represented as java classes and will be mapped to a ...
flash's user avatar
  • 6,770
5 votes
1 answer
4k views

__getitem__, __setitem__ multiple keys

I am trying to create a class that stores data in a local buffer as well as acts as an interface to a database. I've got following code: class Table(object): def __init__(self, tableName, **...
Barmaley's user avatar
  • 1,232
5 votes
2 answers
4k views

Modelling Access Control in MongoDB

Does anyone have an example of modelling access control in MongoDB? The situation I'm thinking of is: There are a set of resources, each being their own document (e.g. cars, people, trees etc.). A ...
Tyler's user avatar
  • 2,819
5 votes
1 answer
650 views

Haskell Data Model Visualization from Source

Is there a tool that will automatically create a visualization (a class diagram sort of thing) of a haskell data model from source code? Something that walks down data constructors and records and ...
mentics's user avatar
  • 6,894
5 votes
1 answer
680 views

Custom fields in Rails that act as a template for future entries

I'm looking for some feedback on my current plan of implementing custom fields in rails. I'm new to rails and app development in general and would appreciate any comments from more experienced ...
jtgi's user avatar
  • 138
5 votes
2 answers
3k views

Excel Data Model without using PowerPivot

I have a question about the "Data Model" in excel. Whenever I read about this function, it is used with PowerPivot. I ask because I would like to do something like this: I have table A: ID info1 ...
user2317500's user avatar
5 votes
1 answer
8k views

Jsf DataModel vs Java List problem ( no row available exception )

In JSF 1.2 One was listing Items using Java List : private List<Customer> customerItems = null; , but in JSF 2.0 JSf DataModel (ListDataModel) is the way to go. (I am using JSF 2.0) private ...
Hanynowsky's user avatar
  • 3,000
4 votes
1 answer
2k views

Is it possible to send more than one model object to an ASP.NET MVC View?

On my start page, I'd like to display the first items from several different lists that I have on other pages - somewhat like the "recent" page here on SO displays both recent posts and recent ...
Tomas Aschan's user avatar
  • 59.5k
4 votes
2 answers
10k views

Convert array data model to dictionary (swift)

Data Model class DataCart { var icon: UIImage? var cartId: String var price: Int var productName: String var quantity: Int init(icon: UIImage?, cartId: String, price: Int, productName:...
Aldo Lazuardi's user avatar
4 votes
4 answers
13k views

Converting xml schema to relational model

Do you guys know, how we can convert XML Schema to relational model? What are the steps involved? More precisely, How can we figure out what the table names, columns names and the relationships on ...
niceApp's user avatar
  • 3,043

1
2 3 4 5
13