a4b5tq / repositorybuilder Goto Github PK
View Code? Open in Web Editor NEWAutomatically build dao interfaces from Entity classes in Maven Project with Spring Data
Automatically build dao interfaces from Entity classes in Maven Project with Spring Data
Create Constant class with all spring data keywords for sql queries.
Imagine the following entities
class Author {
private int id;
private String name;
private List<Book> books;
}
class Book {
private int id;
private String name;
@Unique private String ISBN;
private List<Author> authors;
private Cover cover;
}
class Cover {
private int id;
private String imagePath;
private String title;
}
I would like in my AuthorRepository to have all possible permutations of filtration fields and ordering, both for all relational (navigational) properties in the object graph (Filter author by its books, or by its books' cover). Beware from possible graph cycles.
As the repository class might grow extremely fast, you can leave the user a chance to create only several methods by some pattern. For example:
This could be easily done if you change the configuration as input arguments to your CLI extension. Right now the plugin is bundled to the project and scans entities with annotations, but this highly couples the project to the plugin, but the plugin is used only for one-time startup.
Create a CLI interface that accepts the repository folder where they need to be created and the flags for filtration e.g.
repository-builder.sh /src/main/java/myapp/repository --fields=all
repository-builder.sh /src/main/java/myapp/repository --fields=primitive
repository-builder.sh /src/main/java/myapp/repository --fields=depth(N)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.