You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/09/09 00:49:44 UTC

[jira] Updated: (TAPESTRY-2328) Persistence strategy should alternately be specified via an annotation on the persisted field

     [ https://issues.apache.org/jira/browse/TAPESTRY-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAPESTRY-2328:
-------------------------------------------

    Description: 
Currently you must use a name (or constant) to define the persistence strategy.  Using a name will always be less refactoring safe than an annotation.

With just @Persist (the empty string value) a search based on meta data is started.

It would be nice if there was a way to inject some logic that could check for an auxiliary annotation or other bit of logic to decide the persistence strategy.

Ideally, when using tapestry-hibernate and a field is an entity type defined in Hibernate, the "entity" persistence strategy should be the default, before checking meta data.

  was:
Currently you must use a name (or constant) to define the persistence strategy.  Using a name will always be less refactoring safe than an annotation.

With just @Persist (the empty string value) a search based on meta data is started.

It would be nice if there was a way to inject some logic that could check for an auxillary annotation or other bit of logic to decide the persistence strategy.

Ideally, when using tapestry-hibernate and a field is an entity type defined in Hibernate, the "entity" persistence strategy should be the default, before checking meta data.

        Summary: Persistence strategy should alternately be specified via an annotation on the persisted field  (was: Type of persistence should also be specified via an annotation on the persisted field)

> Persistence strategy should alternately be specified via an annotation on the persisted field
> ---------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2328
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2328
>             Project: Tapestry
>          Issue Type: New Feature
>          Components: tapestry-core
>    Affects Versions: 5.0.11
>            Reporter: Howard M. Lewis Ship
>             Fix For: 5.1
>
>
> Currently you must use a name (or constant) to define the persistence strategy.  Using a name will always be less refactoring safe than an annotation.
> With just @Persist (the empty string value) a search based on meta data is started.
> It would be nice if there was a way to inject some logic that could check for an auxiliary annotation or other bit of logic to decide the persistence strategy.
> Ideally, when using tapestry-hibernate and a field is an entity type defined in Hibernate, the "entity" persistence strategy should be the default, before checking meta data.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org