Skip to content

Commit c236ca5

Browse files
author
gustavnavar
committed
Change library name to gridjavacore
1 parent 6d2d6f8 commit c236ca5

115 files changed

Lines changed: 304 additions & 449 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ build/
4343
/.idea/dataSources/0c65a8f5-b3f4-462e-a382-2b383a0b633e/storage_v2/_src_/database/NORTHWIND.bf6LwA/schema/dbo.sYMBAA.zip
4444
/.idea/dataSources/ede369a1-6fac-4381-baa8-49852c4d584d/storage_v2/_src_/database/NORTHWIND.bf6LwA/schema/dbo.sYMBAA.zip
4545
/.idea/dataSources/ede369a1-6fac-4381-baa8-49852c4d584d.xml
46-
/out/artifacts/gridcore_jar/gridcore.jar
4746
/.idea/dataSources/0c65a8f5-b3f4-462e-a382-2b383a0b633e/storage_v2/_src_/database/NORTHWIND.bf6LwA/schema/INFORMATION_SCHEMA.NBgcMw.meta
4847
/.idea/dataSources/ede369a1-6fac-4381-baa8-49852c4d584d/storage_v2/_src_/database/NORTHWIND.bf6LwA/schema/INFORMATION_SCHEMA.NBgcMw.meta
4948
/.idea/dataSources/0c65a8f5-b3f4-462e-a382-2b383a0b633e/storage_v2/_src_/database/NORTHWIND.bf6LwA.meta

.idea/artifacts/gridcore_jar.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.idea/dataSources.xml

Lines changed: 1 addition & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jpa-buddy.xml

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/uiDesigner.xml

Lines changed: 0 additions & 124 deletions
This file was deleted.

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
1-
# Grid.Core
1+
# GridJavaCore
22

3-
GridCore is a back-end library for Spring Boot projects that performs paging, sorting, filtering and others, to support client Blazor projects to show data in a grid.
3+
GridJavaCore is a back-end library for Java JPA / Hibernate projects that performs paging, sorting, filtering and others, to support client Blazor projects to show data in a grid. It will also support clients based on Vue.js projects with a Grid library (no yet developed).
44

5-
It is in development and it is not production ready.
5+
## Documentation
6+
* [Documentation for Blazor WASM with GridJavaCore back-end (REST API)](./docs/java_backend/Documentation.md)
67

7-
The long-term objective is to develop a client Grid library for Vue.js projects.
8+
This is an example of a table of items using this component:
89

10+
![Image of GridBlazor](./docs/images/GridBlazor.png)
11+
12+
## Change Log
13+
https://github.com/gustavnavar/Grid.Java.Core/releases
914

1015
## Folder description
11-
* [gridcore](./gridcore): Library to build back-ends bases on Spring Boot
12-
* [demo](./demo): Spring Boot demo project supporting the gridcore library. It can be tested with this [Blazor WASM project](https://github.com/gustavnavar/Grid.Blazor/tree/master/GridBlazorSpring)
16+
* [gridjavacore](./gridjavacore): Library to build back-ends based on Java JPA / Hibernate
17+
* [demo](./demo): Spring Boot demo project supporting the gridjavacore library. It can be tested with this [Blazor WASM project](https://github.com/gustavnavar/Grid.Blazor/tree/master/GridBlazorSpring)
18+
* [docs](./docs): Documentation
1319

1420
The SQL Server database for all demos can be downloaded from [here](https://github.com/gustavnavar/Grid.Core/tree/master/sample_database)
1521

demo/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</parent>
1111
<groupId>me.agno</groupId>
1212
<artifactId>demo</artifactId>
13-
<version>0.0.8</version>
13+
<version>1.0.0</version>
1414
<name>demo</name>
1515
<description>demo</description>
1616
<properties>
@@ -42,9 +42,9 @@
4242
<scope>test</scope>
4343
</dependency>
4444
<dependency>
45-
<groupId>me.agno.gridcore</groupId>
46-
<artifactId>gridcore</artifactId>
47-
<version>0.0.8</version>
45+
<groupId>me.agno.gridjavacore</groupId>
46+
<artifactId>gridjavacore</artifactId>
47+
<version>1.0.0</version>
4848
<scope>compile</scope>
4949
</dependency>
5050
</dependencies>

demo/src/main/java/me/agno/demo/controllers/SampleDataController.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
import lombok.RequiredArgsConstructor;
1818
import me.agno.demo.model.*;
1919
import me.agno.demo.repositories.*;
20-
import me.agno.gridcore.IGridColumnCollection;
21-
import me.agno.gridcore.SelectItem;
22-
import me.agno.gridcore.server.GridServer;
23-
import me.agno.gridcore.server.IGridServer;
24-
import me.agno.gridcore.utils.ItemsDTO;
20+
import me.agno.gridjavacore.IGridColumnCollection;
21+
import me.agno.gridjavacore.SelectItem;
22+
import me.agno.gridjavacore.server.GridServer;
23+
import me.agno.gridjavacore.server.IGridServer;
24+
import me.agno.gridjavacore.utils.ItemsDTO;
2525
import org.hibernate.query.criteria.HibernateCriteriaBuilder;
2626
import org.hibernate.query.sqm.tree.SqmCopyContext;
2727
import org.hibernate.query.sqm.tree.select.SqmSelectStatement;
@@ -280,7 +280,7 @@ public ResponseEntity<ItemsDTO<Order>> orderColumnsWithCrud(HttpServletRequest r
280280
EntityManager em = entityManagerFactory.createEntityManager();
281281

282282
Consumer<IGridColumnCollection<Order>> columns = c -> {
283-
c.add("orderID", Integer.class).setPrimaryKey(true);
283+
c.add("orderID", Integer.class);//.setPrimaryKey(true);
284284
c.add("customerID", String.class);
285285
c.add("employeeID", Integer.class);
286286
c.add("shipVia", Integer.class, true);
@@ -315,7 +315,7 @@ public ResponseEntity<ItemsDTO<Order>> orderColumnsWithSubgridCrud(HttpServletRe
315315
EntityManager em = entityManagerFactory.createEntityManager();
316316

317317
Consumer<IGridColumnCollection<Order>> columns = c -> {
318-
c.add("orderID", Integer.class).setPrimaryKey(true);
318+
c.add("orderID", Integer.class);//.setPrimaryKey(true);
319319
c.add("customerID", String.class);
320320
c.add("employeeID", Integer.class);
321321
c.add("shipVia", Integer.class, true);
@@ -404,7 +404,7 @@ public ResponseEntity<ItemsDTO<Order>> getVirtualizedOrdersGrid(HttpServletReque
404404
EntityManager em = entityManagerFactory.createEntityManager();
405405

406406
Consumer<IGridColumnCollection<Order>> columns = c -> {
407-
c.add("orderID", Integer.class).setPrimaryKey(true);
407+
c.add("orderID", Integer.class);//.setPrimaryKey(true);
408408
c.add("customerID", String.class);
409409
c.add("employeeID", Integer.class);
410410
c.add("shipVia", Integer.class, true);
@@ -442,7 +442,7 @@ public ResponseEntity<ItemsDTO<Order>> getOrdersGridAllFeatures(HttpServletReque
442442
EntityManager em = entityManagerFactory.createEntityManager();
443443

444444
Consumer<IGridColumnCollection<Order>> columns = c -> {
445-
c.add("orderID", Integer.class).setPrimaryKey(true);
445+
c.add("orderID", Integer.class);//.setPrimaryKey(true);
446446
c.add("customerID", String.class);
447447
c.add("employeeID", Integer.class);
448448
c.add("shipVia", Integer.class, true);
@@ -507,7 +507,7 @@ public ResponseEntity<ItemsDTO<Employee>> getEmployeesGrid(HttpServletRequest r
507507
EntityManager em = entityManagerFactory.createEntityManager();
508508

509509
Consumer<IGridColumnCollection<Employee>> columns = c -> {
510-
c.add("employeeID", Integer.class).setPrimaryKey(true);
510+
c.add("employeeID", Integer.class);//.setPrimaryKey(true);
511511
c.add("titleOfCourtesy", String.class);
512512
c.add("firstName", String.class);
513513
c.add("lastName", String.class);
@@ -664,8 +664,8 @@ public ResponseEntity<?> getOrderDetailsGrid(HttpServletRequest request,
664664
EntityManager em = entityManagerFactory.createEntityManager();
665665

666666
Consumer<IGridColumnCollection<OrderDetail>> columns = c -> {
667-
c.add("orderID", Integer.class, true).setPrimaryKey(true);
668-
c.add("productID", Integer.class).setPrimaryKey(true);
667+
c.add("orderID", Integer.class, true); //.setPrimaryKey(true);
668+
c.add("productID", Integer.class); //.setPrimaryKey(true);
669669
c.add("product.productName", String.class);
670670
c.add("quantity", Short.class);
671671
c.add("unitPrice", BigDecimal.class);

0 commit comments

Comments
 (0)