springdata-helper

A helper for spring-data

License

License

Categories

Categories

Data
GroupId

GroupId

work.iwacloud
ArtifactId

ArtifactId

springdata-helper
Last Version

Last Version

1.0.6
Release Date

Release Date

Type

Type

jar
Description

Description

springdata-helper
A helper for spring-data
Project URL

Project URL

https://projects.spring.io/spring-boot/#/spring-boot-starter-parent/springdata-helper
Source Code Management

Source Code Management

https://github.com/tiagoiwamoto/springdata-helper.git

Download springdata-helper

How to add to project

<!-- https://jarcasting.com/artifacts/work.iwacloud/springdata-helper/ -->
<dependency>
    <groupId>work.iwacloud</groupId>
    <artifactId>springdata-helper</artifactId>
    <version>1.0.6</version>
</dependency>
// https://jarcasting.com/artifacts/work.iwacloud/springdata-helper/
implementation 'work.iwacloud:springdata-helper:1.0.6'
// https://jarcasting.com/artifacts/work.iwacloud/springdata-helper/
implementation ("work.iwacloud:springdata-helper:1.0.6")
'work.iwacloud:springdata-helper:jar:1.0.6'
<dependency org="work.iwacloud" name="springdata-helper" rev="1.0.6">
  <artifact name="springdata-helper" type="jar" />
</dependency>
@Grapes(
@Grab(group='work.iwacloud', module='springdata-helper', version='1.0.6')
)
libraryDependencies += "work.iwacloud" % "springdata-helper" % "1.0.6"
[work.iwacloud/springdata-helper "1.0.6"]

Dependencies

compile (4)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-data-jpa jar 2.2.2.RELEASE
org.json : json jar 20190722
com.google.code.gson : gson jar 2.8.6
org.projectlombok : lombok Optional jar 1.18.10

runtime (2)

Group / Artifact Type Version
org.springframework.boot : spring-boot-devtools Optional jar 2.2.2.RELEASE
com.h2database : h2 jar 1.4.200

test (2)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-test jar 2.2.2.RELEASE
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Spring-data Helper

Buy Me A Coffee

Problem: You need to make a custom query using Springdata ok?
you will do: @Query(value = "your query here", nativeQuery = true)
             List<Object> myCustomQuery();
Right, this works fine.
but the result will be:
    [
        {1,
        "name of user",
        "2019-12-22",
        true},
        ...
    ]
Then you need to parse this in your DTO class right ?
With this class we give to you a map with column name with java pattern
without any anotation or mapping.
then result will be:
    [
        {
            id: 1,
            name: "name of user",
            createdAt: "2019-12-22",
            isActive: true
        },
        ...
    ]          

Tecnologies

Java 1.8
Maven 3.6.x
SOLID && KISS

Build

mvn clean install
mvn -DskipTests clean install

Add in your project

    <dependency>
        <groupId>work.iwacloud</groupId>
        <artifactId>springdata-helper</artifactId>
        <version>1.0.3</version>
    </dependency>
    
    In your Application.java add scanBasePackages
    @SpringBootApplication(scanBasePackages = {"your.package", "work.iwacloud"})

Main developers

Tiago Henrique Iwamoto - https://www.linkedin.com/in/tiago-iwamoto/
Bruno Raphael Dutra - https://br.linkedin.com/in/bruno-dutra-81589667

Any help ?

Members contacts

Versions

Version
1.0.6
1.0.5
1.0.3