Spring Data JPA Postgres UUID @Id

I read lots of outdated info on this matter. Using PostgreSQL v13+ there is a function called gen_random_uuid(). See the manual page of Postgres UUID. Here’s an example entity called Page

As you see you can append the columnDefinition to the @Column annotation. “UUID default gen_random_uuid()” This translates to following SQL

And you…

Read Article

Easily remember ManyToMany ManyToOne OneToMany

ManyToMany in a Person Blog Relationship A Person can be a subscriber of many blogs. A Blog can have many subscribers.

But since this is an inefficient way to manage usually a proxy table is used with [PersonID], [BlogID], aka the 2 related data models. ManyToOne and OneToMany in a Person Blog Relationship A…

Read Article

Vue composition api: ensure variable is not null

I ran into a problem where I was loading data from the backend in App.vue and when loaded that data would be inserted into a vuex store and in another component queried. However the loading took longer than expected and a data race happened. The route destination rendered faster than the backend could deliver data…

Read Article

o2 DNS Auflösung mit Fehlern oder langsam

Es ist der 04.03.2022 seit ca. 18 Uhr funktioniert die DNS Auflösung bei O2 garnicht oder nur sehr langsam. Vor allem Google scheint probleme zu haben, aber nicht nur Google. Es ist bei mir Rechner- und Domänenübergreifend. O2 in Göppingen, welches ca. 40km östlich von Stuttgart liegt. Ich hab sie vorübergehend überbrückt mit meinem Server,…

Read Article

WordPress is the worse “shareware” model

WordPress basic, which doesn’t have much functionality may be free and open, but the meat of it, the plugins, aren’t. The WordPress plugin ecosystem has grown from being an useful extension framework to a monster of “shareware”, trialware only set out to make a sale. Even the spamfilter Akismet, which once used to be free…

Read Article