extend « POJO « JPA Q&A

1. Is it possible to build a JPA entity by extending a POJO?    stackoverflow.com

Lets say I have the following POJO:

public class MyThing {
 private int myNumber;
 private String myData;
//assume getter/setter methods
Is it now possible to extend this POJO as a JPA entity?
@Table(name = "my_thing")
public ...

2. Extend Pojo or using a custom mapping type ?    forum.hibernate.org

Good morning For a project: a varchar table column entitled 'description' in the database contains a special token to specify carriage return, for example @return@ (customer wishes to not put real carriage return in the database column). For the interface application views, we need to replace the special tokens @return@ by a carriage return to display correctly the value extracted from ...

3. Extending abstract pojo    forum.hibernate.org

Hibernate version: 2.1.6 Mapping documents: NA Code between sessionFactory.openSession() and session.close(): NA Full stack trace of any exception that occurs: No Exception this is a design question Name and version of the database you are using: MySQL The generated SQL (show_sql=true): NA Debug level Hibernate log excerpt: 16:27:36,134 INFO Environment:469 - Hibernate 2.1.6 16:27:36,154 INFO Environment:503 - loaded properties from resource ...

4. extending from my own pojos    forum.hibernate.org