Giter Club home page Giter Club logo

jpaspringboot's Introduction

Make sure all @OneToOne or @ManyToOne properties marked as LAZY fetch @OneToOne(fetch=FetchType.LAZY) private Role role;

this will make sure that other table data did not fetch by default.

create User Section
@ManyTOMany
@JoinTable(
joinColumns=@JoinColumn(),inverseJoinColumns=@JoinColumn()
)

add
@ManyToMany(mappedBy="courses")

TODO:
Sorting [done]
paging[done]
search by email
search by name
search by rolename

##URL
localhost:8080/search
localhost:8080/search?sort=name,desc
localhost:8080/search?sort=name,asc&page=0&size=1
PagedListHolder
PageImpl

https://www.baeldung.com/rest-api-query-search-language-more-operations
http://localhost:8080/user/search?search=role:Admin,name~pras
We have two sets of operations:

##Simple โ€“ can be represented by one character
Equality: represented by colon (:)
Negation: represented by Exclamation mark (!)
Greater than: represented by (>)
Less than: represented by (<)
Like: represented by tilde (~)
##Complex โ€“ need more than one character to be represented
Starts with: represented by (=prefix*)
Ends with: represented by (=*suffix)
Contains: represented by (=substring)

#Oracle Connectivity

  • Add Oracle jar file
    <dependency>
    <groupId>com.oracle</groupId>
    <artifactId>ojdbc7</artifactId>
    <version>12.1.0</version>
    </dependency>

    spring.datasource.url=jdbc:oracle:thin:@localhost:1521:orcl
    spring.datasource.username =username
    spring.datasource.password =pass
    spring.datasource.driver-class-name=oracle.jdbc.OracleDriver

jpaspringboot's People

Contributors

prashantgenial avatar

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.