Git Product home page Git Product logo

kotlin-jpa-specification-dsl's People

Contributors

bhathiyaw-console avatar jamesbassett avatar jsk avatar yeong-chae avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kotlin-jpa-specification-dsl's Issues

Incorporating treat function

Hi,

Wondering if there is any future plan to include JPA Criteria Treat()?
https://docs.oracle.com/javaee/7/api/javax/persistence/criteria/CriteriaBuilder.html#treat-javax.persistence.criteria.CollectionJoin-java.lang.Class-

Usage:
From our main entity, we are getting a field which is joined to another entity.
However, that entity is from abstract class and we wanted a field from that entity's base class.
e.g.
Accessing book's price and title

data class Store (
val book: BookInfo
)

abstract class BookInfo(
val id: Long
)

open class FictionBook(
val id: Long
val title: String
val price: String
) : BookInfo( id)
{
toInfo() =toBookInfo(id)
}

-this9is3me

integrate klinq?

Hi,

after I didn't get any feedback on my pull request (add variance) I added more freatures and put in into https://github.com/klinq/klinq-jpaspec.

Since this now has a good feature set (used in a couple of projects) - my question is if you want to integrate the changes back here.

If you are inerested, I can make a pull request.

How crete subquery?

I want to create subquery for many to many relation. How create subquery with kotlin jpa specification dsl?

Specification with fetch join?

First of all, thank you for making this, it is exactly what I was looking for.

I am trying to improve performance by using fetch joins. Using the Criteria API I would do something like this:
CriteriaQuery c = cb.createQuery(Person.class);
Root person = c.from(Person.class);
person.fetch("address");
c.select(person);

Any idea how this can be achieved using the DSL?

Thanks!

-Anders

Artifact no longer available in Jcenter

Hello,

Officially, since yesterday (evening), the build started failing due to missing artifact, which I can confirm is no longer available in jcenter() (https://repo1.maven.org/maven2/au/com/), which is a problem...
The only place where it is available is Groovy Libs but that requires credentials + I am using Kotlin DSL so that might become a impediment (https://groovy.jfrog.io/ui/native/libs-release/au/com/console/).
Is there a workaround for this maybe? Or better yet, is there any chance that this artifact will be published somewhere else, accessible?

Thank you! :)

error in dsl combineSpec...

Type inference failed: inline fun <reified T> combineSpecification(specs: Iterable<Specification<T#1 (type parameter of app.foodin.entity.common.combineSpecification)>?>, operation: Specification<T#1>.(Specification<T#1>) -> Specification<T#1>): Specification<T#1>
cannot be applied to
(Iterable<Specification<T#2 (type parameter of app.foodin.entity.common.and)>?>,KFunction2<Specification<T#2>, @ParameterName Specification<T#2>, Specification<T#2>>)

When I build it, this error occurs.
I am using Kotlin 1.3.61 and spring boot 2.2.4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.