[jira] [Commented] (ISIS-1816) Specify framework's behavior if multiple @Parent annotations or parent() methods are resolved in the object's hierarchy

2018-02-14 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-1816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16364237#comment-16364237
 ] 

ASF subversion and git services commented on ISIS-1816:
---

Commit 0645ecde12e94d416bf858387eeca960cb0bc60a in isis's branch 
refs/heads/master from [~hobrom]
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=0645ecd ]

ISIS-1816 refactoring Annotations + implement hierarchy search

> Specify framework's behavior if multiple @Parent annotations or parent() 
> methods are resolved in the object's hierarchy
> ---
>
> Key: ISIS-1816
> URL: https://issues.apache.org/jira/browse/ISIS-1816
> Project: Isis
>  Issue Type: Sub-task
>  Components: Core
>Affects Versions: 2.0.0-M1
>Reporter: Andi Huber
>Assignee: Andi Huber
>Priority: Major
> Fix For: 2.0.0-M1
>
>
> We need a clear specification on how the framework behaves if multiple 
> @Parent annotations or parent() methods are resolved in the object's 
> hierarchy.
> And reflect this with code in metamodel's
> {code:java}
> org.apache.isis.core.metamodel.facets.object.navparent.annotation.NavigableParentAnnotationFacetFactory
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ISIS-1816) Specify framework's behavior if multiple @Parent annotations or parent() methods are resolved in the object's hierarchy

2018-02-14 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-1816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16364238#comment-16364238
 ] 

ASF subversion and git services commented on ISIS-1816:
---

Commit f338b8b0a907f3581041644abe2f093542b09c88 in isis's branch 
refs/heads/master from [~hobrom]
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=f338b8b ]

ISIS-1816 impl. navigable parent resolving behavior according to spec

> Specify framework's behavior if multiple @Parent annotations or parent() 
> methods are resolved in the object's hierarchy
> ---
>
> Key: ISIS-1816
> URL: https://issues.apache.org/jira/browse/ISIS-1816
> Project: Isis
>  Issue Type: Sub-task
>  Components: Core
>Affects Versions: 2.0.0-M1
>Reporter: Andi Huber
>Assignee: Andi Huber
>Priority: Major
> Fix For: 2.0.0-M1
>
>
> We need a clear specification on how the framework behaves if multiple 
> @Parent annotations or parent() methods are resolved in the object's 
> hierarchy.
> And reflect this with code in metamodel's
> {code:java}
> org.apache.isis.core.metamodel.facets.object.navparent.annotation.NavigableParentAnnotationFacetFactory
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ISIS-1816) Specify framework's behavior if multiple @Parent annotations or parent() methods are resolved in the object's hierarchy

2018-02-14 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-1816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16364240#comment-16364240
 ] 

ASF subversion and git services commented on ISIS-1816:
---

Commit 412606959ec63729a5d6451a519d86a3ad2708c7 in isis's branch 
refs/heads/master from [~hobrom]
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=4126069 ]

ISIS-1816 Refactoring names + simplify

> Specify framework's behavior if multiple @Parent annotations or parent() 
> methods are resolved in the object's hierarchy
> ---
>
> Key: ISIS-1816
> URL: https://issues.apache.org/jira/browse/ISIS-1816
> Project: Isis
>  Issue Type: Sub-task
>  Components: Core
>Affects Versions: 2.0.0-M1
>Reporter: Andi Huber
>Assignee: Andi Huber
>Priority: Major
> Fix For: 2.0.0-M1
>
>
> We need a clear specification on how the framework behaves if multiple 
> @Parent annotations or parent() methods are resolved in the object's 
> hierarchy.
> And reflect this with code in metamodel's
> {code:java}
> org.apache.isis.core.metamodel.facets.object.navparent.annotation.NavigableParentAnnotationFacetFactory
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ISIS-1816) Specify framework's behavior if multiple @Parent annotations or parent() methods are resolved in the object's hierarchy

2018-01-15 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-1816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16326213#comment-16326213
 ] 

ASF subversion and git services commented on ISIS-1816:
---

Commit 2098daa10082374108f957833757ee04f5e07de1 in isis's branch 
refs/heads/ISIS-1740-where-am-i from [~hobrom]
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=2098daa ]

ISIS-1816 Refactoring names + simplify

> Specify framework's behavior if multiple @Parent annotations or parent() 
> methods are resolved in the object's hierarchy
> ---
>
> Key: ISIS-1816
> URL: https://issues.apache.org/jira/browse/ISIS-1816
> Project: Isis
>  Issue Type: Sub-task
>  Components: Core
>Affects Versions: 2.0.0-M1
>Reporter: Andi Huber
>Assignee: Andi Huber
>Priority: Major
> Fix For: 2.0.0-M1
>
>
> We need a clear specification on how the framework behaves if multiple 
> @Parent annotations or parent() methods are resolved in the object's 
> hierarchy.
> And reflect this with code in metamodel's
> {code:java}
> org.apache.isis.core.metamodel.facets.object.navparent.annotation.NavigableParentAnnotationFacetFactory
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ISIS-1816) Specify framework's behavior if multiple @Parent annotations or parent() methods are resolved in the object's hierarchy

2018-01-15 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-1816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16326081#comment-16326081
 ] 

ASF subversion and git services commented on ISIS-1816:
---

Commit 43a84cc7f3ff70704716be0e99e6aa04fe11ffdd in isis's branch 
refs/heads/ISIS-1740-where-am-i from [~hobrom]
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=43a84cc ]

ISIS-1816 impl. navigable parent resolving behavior according to spec

> Specify framework's behavior if multiple @Parent annotations or parent() 
> methods are resolved in the object's hierarchy
> ---
>
> Key: ISIS-1816
> URL: https://issues.apache.org/jira/browse/ISIS-1816
> Project: Isis
>  Issue Type: Sub-task
>  Components: Core
>Affects Versions: 2.0.0-M1
>Reporter: Andi Huber
>Assignee: Andi Huber
>Priority: Major
> Fix For: 2.0.0-M1
>
>
> We need a clear specification on how the framework behaves if multiple 
> @Parent annotations or parent() methods are resolved in the object's 
> hierarchy.
> And reflect this with code in metamodel's
> {code:java}
> org.apache.isis.core.metamodel.facets.object.navparent.annotation.NavigableParentAnnotationFacetFactory
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ISIS-1816) Specify framework's behavior if multiple @Parent annotations or parent() methods are resolved in the object's hierarchy

2018-01-15 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-1816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16326080#comment-16326080
 ] 

ASF subversion and git services commented on ISIS-1816:
---

Commit 61abd2332bf328e4353e55d19e6ba426017c2943 in isis's branch 
refs/heads/ISIS-1740-where-am-i from [~hobrom]
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=61abd23 ]

ISIS-1816 refactoring Annotations + implement hierarchy search

> Specify framework's behavior if multiple @Parent annotations or parent() 
> methods are resolved in the object's hierarchy
> ---
>
> Key: ISIS-1816
> URL: https://issues.apache.org/jira/browse/ISIS-1816
> Project: Isis
>  Issue Type: Sub-task
>  Components: Core
>Affects Versions: 2.0.0-M1
>Reporter: Andi Huber
>Assignee: Andi Huber
>Priority: Major
> Fix For: 2.0.0-M1
>
>
> We need a clear specification on how the framework behaves if multiple 
> @Parent annotations or parent() methods are resolved in the object's 
> hierarchy.
> And reflect this with code in metamodel's
> {code:java}
> org.apache.isis.core.metamodel.facets.object.navparent.annotation.NavigableParentAnnotationFacetFactory
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ISIS-1816) Specify framework's behavior if multiple @Parent annotations or parent() methods are resolved in the object's hierarchy

2018-01-14 Thread Andi Huber (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-1816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16325730#comment-16325730
 ] 

Andi Huber commented on ISIS-1816:
--

In general I find it difficult to memorize a specification, that needs lots of 
rules, so why not take the radical approach and simplify. Here's my proposal:

1) remove the resolve parent by method "parent()" functionality, since ...
a) ... it's difficult to memorize what takes precedence annotation or method
b) ... we don't want to introduce new 'keywords' since this unnecessarily 
complicates things (possible conflict with actual business method names, that 
are intended for other use)

2) Do not allow (or ignore) @Parent annotations on Java Interfaces, since 
multiple inheritance would allow scenarios, where a metadata evaluation of 
domain-objects becomes arbitrarily complex.

3) Any class (abstract or concrete) may at most have one @Parent annotation (on 
either a method or a field); otherwise metadata evaluation fails with an error.

4) The annotated member (method or field), when ...
a) ... a method: must be a no-arg method returning a non-primitive type
b) ... a field: then the field must be of non-primitive type and must also have 
a getter (as specified by the Java Beans Standard, particularly to allow lombok 
getters by @Getter annotation of fields)

5) Starting from the current domain-object class we search down the object 
inheritance hierarchy until we find the first super class that has a @Parent 
annotation. That's the one we use to resolve the current domain-object 's 
navigable parent.

> Specify framework's behavior if multiple @Parent annotations or parent() 
> methods are resolved in the object's hierarchy
> ---
>
> Key: ISIS-1816
> URL: https://issues.apache.org/jira/browse/ISIS-1816
> Project: Isis
>  Issue Type: Sub-task
>  Components: Core
>Affects Versions: 2.0.0-M1
>Reporter: Andi Huber
> Fix For: 2.0.0-M1
>
>
> We need a clear specification on how the framework behaves if multiple 
> @Parent annotations or parent() methods are resolved in the object's 
> hierarchy.
> And reflect this with code in metamodel's
> {code:java}
> org.apache.isis.core.metamodel.facets.object.navparent.annotation.NavigableParentAnnotationFacetFactory
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)