How to generate the JPA entity Metamodel?

It would be awesome if someone also knows the steps for setting this up in Eclipse (I assume it’s as simple as setting up an annotation processor, but you never know) Yes it is. Here are the implementations and instructions for the various JPA 2.0 implementations: EclipseLink org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor Hibernate org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor http://in.relation.to/2009/11/09/hibernate-static-metamodel-generator-annotation-processor OpenJPA org.apache.openjpa.persistence.meta.AnnotationProcessor6 http://openjpa.apache.org/builds/2.4.1/apache-openjpa/docs/ch13s04.html DataNucleus … Read more

Get model’s fields in Django

_meta is private, but it’s relatively stable. There are efforts to formalise it, document it and remove the underscore, which might happen before 1.3 or 1.4. I imagine effort will be made to ensure things are backwards compatible, because lots of people have been using it anyway. If you’re particularly concerned about compatibility, write a … Read more

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