I wanted to define a record type with a Static_Predicate:-- irregular_matrices.adsgeneric type Element_Type is private;package Irregular_Matrices is subtype Index_Type is Positive; ...
I'm trying to create a package of generic adjacency matrices to define graphs, and the first goal is to define a static version based on two-dimensional array:with Ada.Containers.Vectors;generic ...
I am trying to create a Hibernate specification with parentheses but was not able to do it.I have many specifications. My problem is with the following specification:public static Specification<...
I'm working with SwiftData and trying to share logic across multiple models using protocols and protocol extensions.I’ve created some common protocols like Queryable, StatusRepresentable, and ...
I confirmed the following syntax in the DB2 LUW v11.5 manual (we are running DB2 LUW v11.5.9). And apparently this syntax has been supported at least since v9.7! This is in a stored procedure and, ...
I am working on a wallet application and I have the models transaction and wallet. Transaction has an extension enum Transaction.Kind which has case deposit and withdrawal. I want to filter the ...
ContextI am attempting to take a Swift Predicate created with the #Predicate macro and parse it into a database query statement. (SwiftData does this under the hood to query the underlying SQLite ...
ContextI'm attempting to create a Swift Predicate using the #Predicate macro as shown here:final class Foo { var title: String = "" var name: String = ""}let p = #...
I am trying to return a list of items that may match multiple tagsFor example given below:item1 with tag1 and tag2item2 with tag1 only.If I have tag1 and tag2 selected I would like to return only ...
classes with static check methods. wanted to find thematching one and return to it in wrap method.this architecture perfectly suits for my need of OOP-ifying.here is the way that I used to do it in ...
I have a CoreData entity called Item, which may or may not contain Properties. I would like to fetch all Items that have not yet been assigned any Properties.extension Item { @nonobjc public ...
fellows.To be short: I need to filter a List to have just itens who have differences on some fields.This is because I need to show to the Auditor the differences on the Object throught the time.I ...
I want to remove a collection of objects from a List, the removed objects should be added to new list and returned. The expected return of removed object (car) when outprinted look like for ex:[...
Global variable a is a cons cell, but NOT a list. Why does LISTP return T for it?* (defvar a (cons 1 2))A* a(1 . 2)* (listp a)TEdit: Thanks to Gwang-Jin Kim for a function to substitute for ...
How one using spring data specifications can do the equivalent of this:select a.*, (select count(1) from b where b.a_id = a.id) as countfrom a;If this is not possible is there an equivalent?