Comments (1)
i'm thinking if we define it something like:
@SqlResultSetMapping(name="map",
entities={
@EntityResult(entityClass=Person.class,
fields={
@FieldResult(name="foaf:name", column="name"),
@FieldResult(name="foaf:surname", column="ln"),
@FieldResult(name="foaf:firstName", column="fn"),
@FieldResult(name="foaf:mbox", column="email")
}
)},
columns={
@ColumnResult(name="col")
})
then we can convert each bindingset returned in the query results into a Graph and then use that to build the instance from rather than building it from the results of a describe. that'd work, and be pretty easy, but i dont know if its useful. then what, the other fields on the instance will be null? then they will get wiped out when the object is saved; we'd interpret those as changes, deletes specifically, and that's not the behavior i think is intended. i'll need to find some bits on how this is normally used in like hibernate or something to see what the right way forward is on this.
from empire.
Related Issues (20)
- 404 for link to dataversity article HOT 1
- find an instance of a class loaded with another ClassLoader
- Using InstanceGenerator, only the last annotation on an interface method is inherited no matter how many there are HOT 1
- Annotated getter with OneToMany(fetch=FetchType.LAZY) does not lazily fetch. HOT 2
- lazily-fetched properties that are interfaces are not proxied correctly HOT 3
- re-throw lifecycle exceptions from callbacks instead of only logging them
- EntityListeners' callback methods are not executed in the order the classes are specified in the annotation HOT 1
- Cannot persist entities to Stardog with Empire and Spring declaritive transaction management due to StardogException: A transaction is already open exception HOT 3
- Performance issues with lazy loading HOT 11
- Lazy-loading doesn't work with Set
- Cascade-update does not work with the javassist proxies when the field is annotated and annotating the getter causes a performance issue
- Empire can load the same entity multiple times within a single transaction (performance issue) HOT 1
- EntityManagerImpl.find doesn't generally work with NamedGraph annotated classes HOT 2
- [Question] Pom file, maven HOT 1
- lazy loading of properties (fetch type) increased perm gen space
- better handling of multiply typed individuals with lazy-loaded collections
- Multiple language literals cannot be accessed HOT 3
- empty namespace prefix cannot be used HOT 1
- update on static NamedGraph dont work
- Remove RdfGenerator and related classes, replace with Pinto
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 empire.