How to perform a bulk update of documents in MongoDB with Java?

Using the example in the manual on the new bulkWrite() API, consider the following test collection which contains the following documents: { “_id” : 1, “char” : “Brisbane”, “class” : “monk”, “lvl” : 4 }, { “_id” : 2, “char” : “Eldon”, “class” : “alchemist”, “lvl” : 3 }, { “_id” : 3, “char” : … Read more

CRUD: To Roo or not to Roo? [closed]

Note that Spring Roo and JBoss Seam aren’t directly comparable, as JBoss Seam in itself doesn’t provide the CRUD application generation mentioned in the question. JBoss Seam however comes with the seam-gen tool, which provides this functionality. It would therefore probably be better to see JBoss Seam as comparable to the Spring framework and compare … Read more

REST Best Practices: Should you return an entity on POST and PUT calls?

It might be beneficial to study the API’s of other folks to see how they do it. Most of the useful public API’s are published somewhere on the web. For example, the Overmind project publishes their REST API here. In general, their approach is to return a JSON Dictionary containing the new or modified entity … Read more

Rails – Update a single attribute : link with custom action or form with hidden fields?

Not sure what your routes look like but if you have an update action it should work with the link_to. If you go with the link make sure you use a method of PUT or POST (ideally PUT because it’s an update): link_to(“Unlink your facebook account”, user_path(@user, :facebook_uid => nil), :method => :put, :confirm => … Read more

How to perform update operations on columns of type JSONB

If you’re able to upgrade to Postgresql 9.5, the jsonb_set command is available, as others have mentioned. In each of the following SQL statements, I’ve omitted the where clause for brevity; obviously, you’d want to add that back. Update name: UPDATE test SET data = jsonb_set(data, ‘{name}’, ‘”my-other-name”‘); Replace the tags (as oppose to adding … Read more

Why the Ruby on Rails action “destroy” is not named “delete”?

Rails uses 4 standard methods(verbs), namely: GET POST PUT DELETE Besides it has 7 RESTful actions: index new create edit update show destroy Rails never uses the same verb as the corresponding action. Routing to the action destroy makes it possible to do more than a single DELETE, through the corresponding action in the controller. … Read more

Angular – Material Table, is it possible to update rows without entire table refresh?

Took me some time but I finally got everything working. Your answers and different approaches helped aswell. So, here’s my CRUD implementation if anyone gets in trouble with this: https://github.com/marinantonio/angular-mat-table-crud Screenshot: Or you can check project demo: https://marinantonio.github.io/angular-mat-table-crud/ Key parts are in table.ts file: …. addNew(issue: Issue) { const dialogRef = this.dialog.open(AddDialogComponent, { data: {issue: … Read more

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

I don’t have any examples to point to. In truth, many of these screens may be hard to find on the web for the simple fact that most of them tend to be “ugly”. These kinds of screens are rarely pretty. I can offer some tips, from long history working with these things. Consistency. Make … Read more