For production, we use an Oracle database with some fancy identifier materials
@Id
@GeneratedValue(generator = "generator")
@GenericGenerator(name = "generator", strategy = "guid", parameters = {})
@Column(name="PROPERTY_ID")
private String propertyId;
For testing, I thought that I just use the H2 database in memory and how the identifier is generated feels less important (I’m not even sure that guid will work with H2), so is it possible to have different settings for testing and production?
source
share