Comments (11)
I’ve been told that Jinq works fine on jdk11+. I haven’t done any extensive testing myself on newer jdks or with modules though.
from jinq.
getting the following error with jdk15
gr/codebb/protoerp/settings/SettingsHelper.java:[62,20] org.jinq.orm.stream.JinqStream.org.jinq.orm.stream.JinqStream.Where in package org.jinq.orm.stream is not accessible
(package org.jinq.orm.stream is declared in the unnamed module, but module codebb.protoerp does not read it)
from jinq.
What is your modules setup? And what is SettingsHelper doing with Jinq? Is it just using Jinq internally or is it exposing some of Jinq’s classes externally?
from jinq.
my pom.xml has
org.jinq jinq-jpa 1.8.31my module class file has
requires jinq.jpa;
SettingsHelper is some help functions to update a table
For example this is how it is done for one function (works fine under java 8)
public static void updateStringSetting(String settingName, String settingValue) {
GenericDao gdaoi1 = new GenericDao(SettingsEntity.class, MainApp.getEmf());
JinqJPAStreamProvider streams = new JinqJPAStreamProvider(MainApp.getEmf());
EntityManager em = MainApp.getEmf().createEntityManager();
Optional result = streams
.streamAll(em, SettingsEntity.class)
.where(c -> c.getSettingName().equals(settingName))
.findFirst();
em.close();
if (result.isPresent()) {
SettingsEntity tmp3 = (SettingsEntity) result.get();
tmp3.setSettingValue(settingValue);
gdaoi1.updateEntity(tmp3);
}
}
from jinq.
JinqStream.Where is actually defined in org.jinq.api. Is it possible to reference that jar directly somehow in your module setup?
from jinq.
hmm it appears to compile if i add
requires api;
in module-info.java but i guess that is not a good name (can easily conflict)
from jinq.
I was hoping to hold off on adding modularizing the codebase until the next JDK LTS release because it might break the old JDK8 support, and a bunch of extra workarounds might be needed. I might be able to just rename things inside Maven though.
Let me think about it for a bit.
from jinq.
i am writting an open src ERP using jinq btw.
It is still in early stages but you can check it
https://github.com/codebbgr/protoERP
from jinq.
I looked at enabling modules in Jinq, and it works, but I'm not sure I'm happy with the result, so I'm going to leave full module support for the future. Instead, I'll just provide automatic module names to the .jars so that there will be no module name collisions.
The module names you will need will eventually be org.jinq.api and org.jinq.jpa.
I don't have easy access to my build machine at the moment, so I'll need to hold off making an actual release with these changes until later on, unless it's really urgent for you.
from jinq.
it is not that urgent , atm i don't have collisions so take your time ;)
from jinq.
Ok, I've released version 1.8.32 to Maven. It provides the automatic module names org.jinq.api instead of api and org.jinq.jpa instead of jinq.jpa
from jinq.
Related Issues (20)
- toList() commit transaction ignoring JPA-Transactional HOT 3
- Question... How does Jinq guesses the operators in Lambdas HOT 1
- Anonymous class as a custom tuple HOT 6
- Could not translate code to a query HOT 6
- A Stream that returns a list of UUIDs is not serializable HOT 10
- fail with registerCustomSqlFunction HOT 5
- How to get the total count after group by? HOT 2
- How to get the number of groups HOT 1
- How to get the number of groups by issuing a separate query after group by? HOT 3
- Support java v21 HOT 5
- can't leftOuterJoin support subquery? HOT 2
- [BUG]: The concatenation of strings was not as expected HOT 4
- [Feature] join supports on condition HOT 1
- [Feature] Add support for additional collection libraries HOT 3
- Where filtering after select with projection gives error HOT 2
- Move from javax.persistence to jakarta.persistence. HOT 6
- Java 13 supported? HOT 2
- Compare int, datetime, bool to String HOT 1
- Could not analyze lambda code HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jinq.