Hat Debezium Hibernate Spec Lead for Bean Validation 2.0 Other projects: ModiTect, MapStruct [email protected] @gunnarmorling http://in.relation.to/gunnar-morling/ 3
domain objects Manifest the schema in your app Deal with type conversions and query result mappings Often provide listener support Can help to follow best practices DB-specific or agnostic 12
= new MappingManager( session ); Mapper<Movie> mapper = manager.mapper( Movie.class ); UUID id = ...; Movie movie = new Movie( id, "To catch a thief", 1955 ); mapper.save( movie ); // ... Movie loaded = mapper.get( id ); 15
exposed, e.g. async JPA-based Mappers JPA-based Mappers Pros and Cons Pros and Cons (Re-)using one familiar API Enable polyglot persistence Generic query support Can manage associations Often based on established code bases + - 26
NoSQL is the heir apparent to RDBMS, but needs a standard query language and APIs to advance https://www.javaworld.com/article/2071239/scripting-jvm- languages/the-time-for-nosql-standards-is-now.html 28
for key-value, column family, document oriented and graph databases "Think JDBC" Mapping API OxM based on top of communication API Integrates with CDI and Bean Validation Async support 32
at J1 " JNoSQL: The Definitive Solution for Java and NoSQL Database" Thursday, Oct 05, 1:00 p.m "Choosing a NoSQL API and Database to Avoid Tombstones and Dragons in Game On!" Wednesday, Oct 04, 12:45 p.m 34
work with a domain model? Are you unsure on your store yet? Are you using multiple stores, or RDBMS + NoSQL? Will you benefit from derived queries? Are you using a graph database? Would you benefit from RDBMS JSON support? 35