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: , ,

4608 questions
1
vote
3 answers

Cleaner, shorter code using conditionals (IF/ELIF/ELSE)

Goal: Reduce the wordiness of a (Python) retrieve_method using IF/ELIF/ELSE conditionals. Structure of the Object Table and Method: This particular retrieve_method calls the user object based on elements making up the User table in the database…
thesayhey
  • 938
  • 3
  • 17
  • 38
1
vote
1 answer

How to add new row to table, using existing row data in EF6?

Using EF6. I'm calling a method on my context instance: var usr = context.Get("Doe"); As I've seen in debug mode, my usr variable stores a link to User class instance. And this instance has it's own ID, according to the database row ID. Now I…
klutch1991
  • 229
  • 2
  • 16
1
vote
0 answers

How to using insert/update callback codeIgniter

I have 3 tables, tbl_reservasi, tbl_ruangan, and user. I want to update my tbl_ruangan.status from Tersedia to Tidak Tersedia. Here's my controller:
Elra Ghifary
  • 113
  • 1
  • 14
1
vote
1 answer

CRUD with WPF, e.Row.Item and e.Row.DataContext are empty

I'm trying to build simplest CRUD application on Windows desktop. Decided to go with WPF over Windows Forms and Lightswitch. Created database, then generated "Code first from database" with Entity Framework. Put datagrid with one table, set…
avj
  • 1,626
  • 1
  • 19
  • 23
1
vote
2 answers

ActiveRecord::RecordNotFound in CoursesController#show

All courses is are showing on index.html.erb and I am trying to view an individual course by clicking view more. Which should link to the show path as I understand, it display that individual course. Which is the result I need. However, rails…
user3905353
  • 77
  • 2
  • 12
1
vote
2 answers

How to use nhibernate with ASP.NET 3.5 (not MVC)

What is the best way to interop with NHibernate 2.0 and ASP.NET 3.5? How can I easily develop a CRUD application? Is the ObjectDataSource the way to go? Thank you.
ChaosSpeeder
  • 3,468
  • 5
  • 30
  • 38
1
vote
10 answers

Fastest way to code up a quick CRUD app. when I have some reusable java code?

I have to come up with a basic CRUD app. as fast as possible (and by "fast" I mean like 3 days). I considered going with Django, but I don't have a lot of experience with Python/Django, and also I have a complete set of EntityBeans that I need do…
Enno Shioji
  • 26,542
  • 13
  • 70
  • 109
1
vote
0 answers

Data modeling with Redis python

I am currently using a mongodb as a database for my application. I am interested in replacing it with REDIS. Hence, I am interested in defining data models for my application which can perform basic CRUD operations and search entities based on…
psbits
  • 1,787
  • 5
  • 19
  • 34
1
vote
1 answer

CRUD strategies, do you use one or two calls per CRUD operation?

When developing web applications I generally see two ways people perform crud and sync the view. Here are the high level examples which use ajax. 1- Method one A create operation could involve a POST request and on success of that just do another…
ericsicons
  • 1,475
  • 3
  • 23
  • 38
1
vote
0 answers

JSP CRUD Operation using jtable plugin

jtable CRUD Operations I am using jTable jQuery plugin for CRUD application with JSP and servlet My requirement is that if status for record is active then it should be updatable else if status is inactive then record must not be updatable JSP …
1
vote
1 answer

Sending msgs in my crud spring-mvc

I am learning spring-mvc and I am doing a simple crud. I have a list of items with a big add button on top of it. When the user clicks add it will redirect to /item/add where the view is a form. Now, when the user loads a new item I want to show a…
Macarse
  • 91,829
  • 44
  • 175
  • 230
1
vote
1 answer

Symfony2 ORM Entity inserting into DB

I have this simple Entity:
eXtreme
  • 244
  • 3
  • 18
1
vote
0 answers

Is this a good practise to check for DUPLICATE value with spring-boot, CrudRepository, MySQL

I have this repository: public interface AccountsRepository extends CrudRepository { } Then I have this service class: public class AccountService { private AccountsRepository accountsRepository; public…
TomGrill Games
  • 1,553
  • 2
  • 16
  • 25
1
vote
0 answers

Can't get data from mysql directly to jsp

I have created simple CrUD application on Java using Spring, Hibernate etc. But edit operation doesn't work as I thought. When I'm trying to edit any line from main table, I get only blank fields, so I cannot edit them, I have to write them from…
Alesto
  • 639
  • 4
  • 13
  • 29
1
vote
2 answers

Resources delete method not working with Devise

I am using devise gem for authentication. For the admin user I am trying to create a page where he will see the list of all users and will be able to delete them. Because devise does not provide action for delete I created a controller where I…
user5178035