eudemon odata base


License

License

Categories

Categories

Data Clover Application Testing & Monitoring Code Coverage
GroupId

GroupId

fr.cloverconsulting
ArtifactId

ArtifactId

odata-base
Last Version

Last Version

0.0.3-alpha
Release Date

Release Date

Type

Type

jar
Description

Description

eudemon odata base
eudemon odata base
Project Organization

Project Organization

Clover consulting

Download odata-base

How to add to project

<!-- https://jarcasting.com/artifacts/fr.cloverconsulting/odata-base/ -->
<dependency>
    <groupId>fr.cloverconsulting</groupId>
    <artifactId>odata-base</artifactId>
    <version>0.0.3-alpha</version>
</dependency>
// https://jarcasting.com/artifacts/fr.cloverconsulting/odata-base/
implementation 'fr.cloverconsulting:odata-base:0.0.3-alpha'
// https://jarcasting.com/artifacts/fr.cloverconsulting/odata-base/
implementation ("fr.cloverconsulting:odata-base:0.0.3-alpha")
'fr.cloverconsulting:odata-base:jar:0.0.3-alpha'
<dependency org="fr.cloverconsulting" name="odata-base" rev="0.0.3-alpha">
  <artifact name="odata-base" type="jar" />
</dependency>
@Grapes(
@Grab(group='fr.cloverconsulting', module='odata-base', version='0.0.3-alpha')
)
libraryDependencies += "fr.cloverconsulting" % "odata-base" % "0.0.3-alpha"
[fr.cloverconsulting/odata-base "0.0.3-alpha"]

Dependencies

compile (10)

Group / Artifact Type Version
org.springframework.data : spring-data-commons jar 2.2.6.RELEASE
com.querydsl : querydsl-apt jar 4.2.2
org.apache.olingo : odata-commons-api jar 4.7.1
org.eclipse.persistence : javax.persistence jar 2.1.0
com.fasterxml.jackson.dataformat : jackson-dataformat-xml jar 2.9.8
com.fasterxml.jackson.dataformat : jackson-dataformat-yaml jar 2.9.8
com.fasterxml.jackson.core : jackson-annotations jar 2.9.8
org.apache.olingo : odata-server-core-ext jar 4.7.1
org.apache.olingo : odata-server-api jar 4.7.1
org.apache.olingo : odata-server-core jar 4.7.1

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.18.6

Project Modules

There are no modules declared in this project.

EUDEMON ODATA

What is eudemon odata ?

eudemon odata is an API development framework for building standardized, OData V4 based RESTful services on java ecosystem.

What is OData?

OData stands for the Open Data Protocol. It was initiated by Microsoft and is now an ISO ratified OASIS standard. OData enables the creation and consumption of REST APIs, which allow resources, identified using URLs and defined in a data model, to be published and edited by Web clients using simple HTTP requests.

For more information about OData, please refer to the following resources:

For how to adopt this and related libraries to build OData server, please refer to the Getting Started

Requirements

  1. Spring data
  2. Query dsl plugin
  3. Installed JDK 8 or higher
  4. database driver

Getting Started

Add eudemon odata starter to your Maven project:

                <dependency>
                        <groupId>fr.cloverconsulting</groupId>
                        <artifactId>eudemon-odata-starter</artifactId>
                        <version>${eudemon.version}</version>
                </dependency>           
          

add now querydsl dependencies (for more details see querydsl github)

create a spring boot project for more help you can use spring initialzer or start from our sample projects ##sample code

sample entity

@Entity(name="user")
@Table(name = "user")
@Getter
@Setter
public class User implements Serializable {
    @Id
    @Column(name = "myid")
    Integer myid;
    @Column(name = "firstname")
    String firstname;
    @Column(name = "lastname")
    String lastname ;
    @OneToMany(mappedBy = "user",cascade = CascadeType.ALL)
    Set<Adress> adress;
    @Embedded
    Job fonction;

}

spring data repository

add your repository interface and extends OdataExecutor User repositry interface

public interface UserRepository extends JpaRepository<User,String> , OdataExecutor<User> {

}

configuration

Add the following parameters into application.yml file

odata:
  namespace: cloverconsulting
  path: "myendpoint/v1"

Start your server.

Enjoy :)

Support

Versions

Version
0.0.3-alpha
0.0.2-alpha