Results 455 comments of Caleb Cushing

It would be interesting to here your thoughts on whether an @Version field should be part of an "equals/hashcode". I mean obviously it's an optimistic lock and all this applies...

To be clear it's about whether an aggregate, which has a long lifecycle where it changes over time (imagine an object that changes in memory), is it still equal to...

Don't know, but it's not a jpa specific problem. Version is just a convenience method for an optimistic lock. Any database with multiple concurrent users might need this solution.

This isn't a usage question. If I use @Id then the auditing works. If I remove the auditing and I use the embedded ID then that works. You want to...

```java package example; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run(Application.class); } } ``` ```java package example; import org.springframework.data.annotation.CreatedDate; import javax.persistence.*; import...

I think i narrowed it down farther, I may be wrong about its relationship to `@EmbeddedId` (or maybe there's another behavior I've noticed). It doesn't want me to set the...

[iw-pm-backend.tar.gz](https://github.com/spring-projects/spring-data-jpa/files/9573626/iw-pm-backend.tar.gz) not really a full project, it's part of our monorepo, so you'd have to set up libs.versions.toml and settings.gradle.kts appropriately.

interestingly, back to kotlin, this is still failing a load test... ```kt @field:CreatedDate @field:Column(name = "created_on", columnDefinition = "timestamp with time zone", nullable = false, updatable = false) open var...

ah, so an update of the java I shared, this fails too ```java @DataJpaTest public class MyEntityRepositoryTest { @Test void testSave(@Autowired MyEntityRepository repo ) { var saved = repo.save(new MyEntity());...

hmm... if I set the property up this way, I'm back to it not saving because of an NPE... did it ever really save? this behavior is a bit wacko...