eclipselink « Default « JPA Q&A





1. How do I write JPA QL statements that hints to the runtime to use the DEFAULT value?    stackoverflow.com

I have a table like so:

mysql> show create table foo;
CREATE TABLE foo
(
    network bigint NOT NULL,
    activeDate datetime NULL default '0000-00-00 00:00:00',
    ...

2. EclipseLink: don't fetch some fields by default    stackoverflow.com

Let's say we have an entity

@Entity
public class Person {
    @Id int id;
    @Basic String name;
    @Basic String remark;
}
Let's say "remark" field is ...

3. Is it possible to set persistence unit default catalog at runtime    stackoverflow.com

For the moment I use the table annotation containing the catalog

@Table(catalog = "Mycatalog", schema = "MySchema", name = "MyTable")
But the catalog name should be made configurable. The persistence.xml file can not be ...