Comments (6)
Sure. I just pushed release 0.1.1 that supports this now. Be sure to download the newer version of the modelgen jar utility, which was also updated to support the new attributes.
from nexusdata.
Thanks. Where i can found newer version of the modelgen jar?
from nexusdata.
It's linked from the readme file. Here it is: http://dkharrat.github.io/NexusData/bin/modelgen/modelgen-0.1.0.jar
from nexusdata.
Are you sure that it is a jar with float support?
Exception in thread "main" com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 22 column 8
at com.google.gson.Gson.fromJson(Gson.java:818)
at com.google.gson.Gson.fromJson(Gson.java:768)
at com.google.gson.Gson.fromJson(Gson.java:717)
at com.google.gson.Gson.fromJson(Gson.java:689)
at com.github.dkharrat.nexusdata.modelgen.ModelGenerator.parseFile(ModelGenerator.java:78)
at com.github.dkharrat.nexusdata.modelgen.ModelGenerator.generateModels(ModelGenerator.java:35)
at com.github.dkharrat.nexusdata.modelgen.Startup.main(Startup.java:18)
Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 22 column 8
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505)
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:494)
at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403)
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666)
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:659)
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667)
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:659)
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667)
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)
at com.google.gson.Gson.fromJson(Gson.java:803)
... 6 more
from nexusdata.
The stack trace you posted indicates that there is some syntax error in your JSON model. Have you verified that it's valid JSON? If you can paste it here, I can also take a look.
from nexusdata.
You are right. Thanks
from nexusdata.
Related Issues (19)
- gradle not found when trying to generate model files HOT 2
- Is weak-typing supported when modifying record? HOT 1
- Do you plan to support context inheritance?
- SUBQUERY in NexusData
- Parent Entity supported? HOT 2
- FetchRequest does not return HOT 1
- keypath in predicate?
- What is wrong with predicate? HOT 2
- Orderedset instead of Set? HOT 1
- NSMergeByPropertyObjectTrumpMergePolicy
- Data mirgration upon db version update is not working HOT 1
- support for transformable HOT 1
- PredicateBuilder HOT 6
- support for many to many relationships
- [BUG] PredicateToSQL HOT 3
- Support to configure Parent Entity HOT 4
- why it's "not yet optimized for large data sets" HOT 4
- Where is pom.xml located? 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 nexusdata.