[jira] [Created] (DELTASPIKE-1467) Saving existing entity throws an exception
Stonewoodman created DELTASPIKE-1467: Summary: 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 {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 { ... } {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) 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)
[PR] fixed count check query [deltaspike]
stonewoodman opened a new pull request, #137: URL: https://github.com/apache/deltaspike/pull/137 using correct entity name -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@deltaspike.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org