Are persistence annotations in domain objects a bad practice?

In my latest iteration on an existing system using Spring and Hibernate, I have started to move in a similar matter. When first implementing Hibernate models, I strove to separate the application logic in service classes from the persistence logic via data access objects. When building a new system last year I allowed most of … Read more

MongoDB Composite Key

You can use objects for the _id field as well. The _id field is always unique. That way you kind of get a composite primary key: { _id : { a : 1, b: 1} } Just be careful when creating these ids that the order of keys (a and b in the example) matters, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)