[jira] [Assigned] (ZEST-181) Replace 'long' with java.time.Instant

2016-10-21 Thread Niclas Hedhman (JIRA)
[ https://issues.apache.org/jira/browse/ZEST-181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niclas Hedhman reassigned ZEST-181: --- Assignee: Niclas Hedhman > Replace 'long' with java.time.Instant >

[jira] [Created] (ZEST-179) Mechanism to declare Defaults factories

2016-10-21 Thread Niclas Hedhman (JIRA)
Niclas Hedhman created ZEST-179: --- Summary: Mechanism to declare Defaults factories Key: ZEST-179 URL: https://issues.apache.org/jira/browse/ZEST-179 Project: Zest Issue Type: New Feature

Re: Design flaw in EntityStore SPI?

2016-10-21 Thread Niclas Hedhman
And this will has a strange side-effect that I perhaps have not thought of well enough... Say; *public interface Employee extends HasAddress{}* *public interface Company extends HasAddress{}* Now, assume that we save Employee "niclas" and then later do; *Company c = uow.get(Company.class,

?????? Listing composite properties

2016-10-21 Thread zhuangmz08
I've got my property descriptions, then how could I get the value of the composite? Do I need to invoke the method using reflection? I guess there's some api in Zest. Thanks. -- -- ??: "";; : 2016??10??22??(??)

?????? Listing composite properties

2016-10-21 Thread zhuangmz08
Thanks all. I'm using "org.qi4j.core:org.qi4j.core.api:2.1". Then, I need to replace org.apache.zest.api.ZestAPI with org.qi4j.api.Qi4j, replace org.apache.zest.spi.ZestSPI with org.qi4j.spi.Qi4jSPI. I've get my PropertyDescriptors. SPI extends from API. And SPI is designed for building

Re: Listing composite properties

2016-10-21 Thread Niclas Hedhman
Note that the EntityDescriptor (and its siblings) extends StatefulCompositeDescriptor, which allows you to obtain the StateDescriptor/ AssociationStateDescriptor where you can get the PropertyDescriptors and AssociationDescriptors, which is what you were asking for. If you have the Property, you

Re: Design flaw in EntityStore SPI?

2016-10-21 Thread Paul Merlin
Makes sense to me Niclas Hedhman a écrit : > Hi again, > While looking into the feasibility of implementing a Repository EntityStore > I realized that the current SPI seems flawed. > > The TYPE of an entity is stored with the entity and not the entity type > that is being processed by the outside