[jira] [Commented] (DELTASPIKE-1177) [Deltaspike Data] Regoznize Entity Type by method returned type if @Repository.forEntity is set to default

2018-01-13 Thread Tibor Digana (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-1177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16325199#comment-16325199
 ] 

Tibor Digana commented on DELTASPIKE-1177:
--

[~johndament]
I want to fix this. Try to guide me how to make the annotation @Repository safe 
to run without entity class. I saw the deltaspike code maybe one year ago.

> [Deltaspike Data] Regoznize Entity Type by method returned type if 
> @Repository.forEntity is set to default
> --
>
> Key: DELTASPIKE-1177
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-1177
> Project: DeltaSpike
>  Issue Type: Improvement
>  Components: Data-Module
>Affects Versions: 1.7.0
>Reporter: Tibor Digana
>
> I want to use Deltaspike Data Repo as a Service because it is simplistic and 
> not DAO.
> Since of service operates over multiple entities I want the extension to 
> recognize the Entity type dynamically by method return type.
> Notice the example does not implement _EntityRepository_ and therefore the 
> only return type should be checked.
> {code}
> @Repository
> public interface Java8Repository {
>   MyEntity findByCourse(@NotNull String courseName);
>   AnotherEntity findByCustomer(@NotNull String customerName);
>   @Query("")
>   Object[] findMultipleEntityTypes(@NotNull String attribute);
> }
> {code}



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


Wrong license on proxy-module impl-asm

2018-01-13 Thread John D. Ament
The license for proxy-module's impl-asm binary JAR is generated
incorrectly.  Do we need to include a shaded ASM?  If we do, we need to
include the BSD-3-Clause license in the generated JAR.

John


[jira] [Created] (DELTASPIKE-1315) EntityRepository should offer an findOptionalBy

2018-01-13 Thread JIRA
Kevin Grüneberg created DELTASPIKE-1315:
---

 Summary: EntityRepository should offer an findOptionalBy
 Key: DELTASPIKE-1315
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1315
 Project: DeltaSpike
  Issue Type: New Feature
  Components: Data-Module
Reporter: Kevin Grüneberg


The EntityRepository interface offers an findBy(PK id) method, that returns the 
entity based on the ID. It would be great to also have an findOptionalBy(PK id) 
that returns an optional.



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