Add the ability to define entity-query objects via annotations - in addition to
components.xml
----------------------------------------------------------------------------------------------
Key: JBSEAM-4405
URL:
https://jira.jboss.org/jira/browse/JBSEAM-4405
Project: Seam
Issue Type: Feature Request
Components: Framework
Affects Versions: 2.2.0.GA
Reporter: Piotr Steininger
Priority: Minor
Currently the only way to dynamically create an entity-home or entity-query component is
via XML in components.xml. The code option is to subclass one of EntityHome or EntityQuery
classes and write a lot of redundant code.
The proposed feature would allow to simply annotate an @Entity with (for example):
@EntityQueries(
{@EntityQuery( name="people", query="select ..... ", ...)}
)
@EntityHome(name="personHome")
I think there is already code that automatically creates these components on start-up
based on components.xml.
There are 2 main drivers behind this idea:
1. Continued reduction of XML and promoting declarative programming
2. Having entity home/queries defined once in one jar eliminates the need to duplicate
XML, which would go in components.xml if the domain objects are used in more than one
project/war file
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira