Robert Niestrojrobertniestroj.hashnode.dev·Jul 3, 2024Think twice before using @OneToMany@OneToMany is one of the most often used annotations in #JPA. Whenever a Parent Entity can have multiple Childs we use a Collection with the @OneToMany annotation. import javax.persistence.*; import java.util.HashSet; import java.util.Set; import org...Discuss·3 likes·1.4K readsJava
Ben GreenbergProhummusonrails.hashnode.dev·Jul 1, 2024Couchbase on Rails: A Guide to Introducing Dynamic and Adaptive Data to Your ApplicationRuby on Rails is often the framework of choice for getting new projects off the ground. The speed of development and iteration is in many ways unparalleled. As such, perhaps you want to use Rails as the framework for your application that requires a ...DiscussDatabases
Rhezatama Dwi Rendragrahablog.rhezatama.com·Jun 30, 2024ORM vs Raw SQL: The Winner is…Intro Kalau di dunia sepakbola, mungkin udah ga asing di telinga kita soal perdebatan yang masih belum jelas kapan selesainya: CR7 atau Messi? Menurut saya sendiri sih, ini betul-betul murni preferensi pribadi aja. Kehebatan mereka berdua sudah diaku...DiscussSQL
Nikhil AkkiPronikhilakki.in·Jun 29, 2024Understanding JPA - Java Persistence APIJava Persistence API (JPA) is a specification for managing relational data in Java applications. JPA defines a set of concepts and practices for interacting with databases in a way that abstracts the underlying data store, allowing developers to focu...DiscussJavajava-persistence-api
Nile Bitsnilebits.hashnode.dev·Jun 27, 2024SQL Injection: Understanding the Threat and How to Avoid Ithttps://nilebits.com/blog/2024/06/thank-you-hostinger-for-addressing-fraudulent-domain-and-email-abuse-swiftly/ Web applications are still seriously threatened by SQL Injection (SQLi), a persistent issue in the constantly changing field of cybersecur...DiscussSQL
Danny Crastoblog.danwald.me·Jun 18, 2024Django soft delete Model using ManagersBelow is the soft delete model you can inherit from. It uses an active field which on delete, it will only set to False and not actually delete the records from the overriden delete method. There is a provision available to actually delete records. I...Discuss·1 like·34 readsDjango
Ayoub ToubaforYaffaLabblog.yaffalab.com·Jun 17, 2024Mastering TypeORM: Solutions to Limiting Relation Join and Agregation OperationTypeORM is a powerful Object-Relational Mapping (ORM) library for TypeScript and JavaScript applications. It simplifies the interaction between your application and the underlying database, allowing you to work with entities and relationships instead...Discussyaffalab
Simon Crowesimoncrowe.hashnode.dev·Jun 16, 2024Django Service Layers: Beyond Fat Models vs. Enterprise PatternsSuppose you want to write a new Django/DRF API service tomorrow or have inherited a large but messy Django codebase. Introduction If your application is useful, it will do more than enable crud operations on relational database tables via HTTP. Let's...Discuss·1.1K readsDjango
Anjanesh Lekshminarayanananjanesh.dev·Jun 13, 2024Using clean() in your Django models post migration from a legacy stackIf you're migrating an application from another stack where foreign keys were not enforced in the database and the some of the rows' foreign key fields have values as 0, then these would cause issues in the new application where the framework has str...Discuss·28 readsDjango
Hitesh Mishrahiteshmishra.hashnode.dev·Jun 6, 2024Advantages of Using Prisma Over Direct Database ManagementType Safety: Prisma: Provides a type-safe database client, generating TypeScript types from your database schema. This helps catch errors at compile time, leading to fewer runtime errors and more reliable code. Direct Database: Manual database oper...Discussprisma