[
https://issues.apache.org/jira/browse/DELTASPIKE-1467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thomas Andraschko updated DELTASPIKE-1467:
------------------------------------------
Fix Version/s: 2.0
> Saving existing entity throws an exception
> ------------------------------------------
>
> Key: DELTASPIKE-1467
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-1467
> Project: DeltaSpike
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: Data-Module
> Affects Versions: 1.9.6
> Reporter: Stonewoodman
> Priority: Major
> Fix For: 2.0
>
>
> {code:java}
> @Entity(name = "Foo")
> @Table(name = "foo")
> public class FooEntity implements Serializable
> {
> @Id
> @GeneratedValue(strategy = GenerationType.IDENTITY)
> private Long id;
> ...
> }{code}
> {code:java}
> @Transactional
> @Repository(forEntity = FooEntity.class)
> public abstract class FooRepository extends
> AbstractEntityRepository<FooEntity, Long>
> {
> ...
> }
> {code}
> Loading an entity in JSF
> Edit and save it.
> It generates following exception
> Caused by: javax.transaction.RollbackException: Transaction is marked for
> rollback
> The origin error occurs in CdiQueryInvocationContext.java#countCheck(Object,
> Property<Serializable>)
> Because for this generated select is using the class name instead of entity
> name.
> See PR
> https://github.com/apache/deltaspike/pull/137
--
This message was sent by Atlassian Jira
(v8.20.10#820010)