Questions tagged [crud]

The four basic operations for a data management system : Create, Read, Update, Delete

The four basic operations that can be used on a relational database table are

  • C reating
  • R eading
  • U pdating
  • D eleting

A CRUD application is one that performs these basic operations. A CRUD framework is an application framework that gives these functionalities as a base for the development.

Also see: , ,

3783 questions
349
votes
5 answers

Rails 4: before_filter vs. before_action

In rails >4.0.0 generators creates CRUD operations with before_action not before_filter. It seems to do the same thing. So what's the difference between these two?
freemanoid
  • 13,958
  • 6
  • 46
  • 76
289
votes
15 answers

Any good ORM tools for Android development?

Anyone working on the Android ('gPhone') have or know of a place where I can find a good ORM tool for it? The code is written in Java, and the database is SQLite. What I would like to find is a tool that given the object definition, can…
GWLlosa
  • 22,656
  • 17
  • 75
  • 108
216
votes
9 answers

Which HTTP methods match up to which CRUD methods?

In RESTful style programming, we should use HTTP methods as our building blocks. I'm a little confused though which methods match up to the classic CRUD methods. GET/Read and DELETE/Delete are obvious enough. However, what is the difference between…
Drew
  • 14,229
  • 15
  • 63
  • 77
167
votes
10 answers

How to perform update operations on columns of type JSONB in Postgres 9.4

Looking through the documentation for the Postgres 9.4 datatype JSONB, it is not immediately obvious to me how to do updates on JSONB columns. Documentation for JSONB types and functions:…
jvous
  • 1,673
  • 2
  • 10
  • 4
135
votes
5 answers

Entity Framework 4 - AddObject vs Attach

I have been working with Entity Framework 4 recently, and am slightly confused as to when to use ObjectSet.Attach, and ObjectSet.AddObject. From my understanding: Use "Attach" when an Entity already exists in the system Use "AddObject" when…
RPM1984
  • 69,608
  • 55
  • 212
  • 331
131
votes
4 answers

React + Redux - What's the best way to handle CRUD in a form component?

I got one form who is used to Create, Read, Update and Delete. I created 3 components with the same form but I pass them different props. I got CreateForm.js, ViewForm.js (readonly with the delete button) and UpdateForm.js. I used to work with PHP,…
Mike Boutin
  • 5,015
  • 11
  • 34
  • 63
112
votes
7 answers

What is scaffolding? Is it a term for a particular platform?

Scaffolding, what is it? Is it a Rails-only thing?
AnonymousAnonymous
66
votes
3 answers

What's the difference between replaceOne() and updateOne() in MongoDB?

MongoDB bulk operations have two options: Bulk.find.updateOne() Adds a single document update operation to a bulk operations list. The operation can either replace an existing document or update specific fields in an existing…
Mike B.
  • 10,955
  • 19
  • 76
  • 118
64
votes
12 answers

Bootstrap modal in React.js

I need to open a Bootstrap Modal from clicking on a button in a Bootstrap navbar and other places (to show data for a component instance, ie. providing "editing" functionality), but I don't know how to accomplish this. Here is my code: EDIT: Code…
user2787959
52
votes
22 answers

Is there a CRUD generator utility in Java(any framework) like Scaffolding in Rails?

Is there a CRUD generator utility in Java like Scaffolding in Rails? Can be in any framework or even plain servlets. Must generate controllers + views in jsp, not just DAO code...
Sathish
  • 19,050
  • 22
  • 57
  • 69
49
votes
18 answers

Getting out of CRUD

Definition: CRUD - Create, Read, Update, Delete; The four basic functions of persistent storage. In the context of this question, specifically related to business applications. I'll be honest, my goal when I began programming did not include being…
Gavin Miller
  • 40,636
  • 19
  • 113
  • 178
47
votes
5 answers

Single DAO & generic CRUD methods (JPA/Hibernate + Spring)

Following my previous question, DAO and Service layers (JPA/Hibernate + Spring), I decided to use just a single DAO for my data layer (at least at the beginning) in an application using JPA/Hibernate, Spring and Wicket. The use of generic CRUD…
John Manak
  • 12,620
  • 27
  • 73
  • 114
40
votes
6 answers

Should there be a Transaction for Read Queries?

I've been reading that some devs/dbas recommend using transactions in all database calls, even read-only calls. While I understand inserting/updating within a transaction what is the benefit of reading within a transaction?
Kyle West
  • 8,544
  • 10
  • 60
  • 96
36
votes
8 answers

Good examples of GUI design for business-oriented, heavy data-entry (CRUD) applications

Where can I find examples of very well produced enterprise-y software that have: Good, consistent use of keyboard shortcuts. Good keyboard form navigation Standarized form validation Standarized use of lookup/search screens. (User gets asked for…
Camilo Díaz Repka
  • 4,765
  • 5
  • 39
  • 68
36
votes
6 answers

Synchronizing a one-to-many relationship in Laravel

If I have a many-to-many relationship it's super easy to update the relationship with its sync method. But what would I use to synchronize a one-to-many relationship? table posts: id, name table links: id, name, post_id Here, each Post can have…
user2834172
  • 721
  • 1
  • 7
  • 16
1
2 3
99 100