About long

171-180 of 200Refresh
Forum
1

@Column( name = "columnName") doesn't work

I have created following entity class with custom fields @Entity public class AfwDataKey { @Id @GeneratedValue @Column(name = "KEY_ID") private long id; private Long timestamp; @ManyToOne @Column(name = "KEY_DESCRIPTOR") private AfwKeyDescriptor keyDescriptor
Forum
1

@OneToOne query issue with OR and IS NULL

Hello, I'm struggeling to get a query run right. I have 2 entities (simplified) class A {     @Id     @GeneratedValue     private Long key;          @OneToOne(mappedBy = "other", cascade ...     private Long key;     private int counter;     @OneToOne     private A other; } so entity B
Forum
1

Accessing objects to make them available after EntityManager close?!

; } @Entity public class Vifr_dic implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue Long id; @Unique private String word; private Set meanings
Forum
1

Async query ObjectDb

1. Is it possible to run async objectDb queries for long time operations and stop them if it necessary? 2. Is it possible to stop sync ObjectDb query from another thread for long time operation for example getResultList()? Link to Java API: http://docs.oracle.com/javase/7/docs/api/java/sql
Forum
1

Attempt to execute a query using a closed EntityManager

. id is a long field in Client, so it should be there after Client is set. Id has @Id @GeneratedValue ... reloading or refresh, because c.getId() should just return the "long" field which is @Id @GeneratedValue
Issue
1

Blocked by find

it run for long enough to confirm the blocking issue is resolved. This new stack trace helped solving ... when used for IDs, are usually slower. Use numbers if possible. Even a composite primary key of 2 long
Forum
1

c.o.jpa.type.EntityTypeImpl.getIdType() returns null

static final long serialVersionUID = 6677607256121084732L;     @Id     @GeneratedValue     private Long id; persistence.xml and spring context xml is pretty much the same as in the spring mvc jpa
Forum
1

can not use spring-data-jpa repository with NamedQuery

of f.bars") public class Foo implements Persistable<Long> {     private Set bars; will be used to implement public interface FooRepository extends JpaRepositoryLong> {     Foo
Forum
1

Cascading makeTransient

the application point-of-view. So as long as I keep B in application cache, also A is present in ... was added in version 2.6.2 in order to prevent garbage collecting of the owner object as long as
Forum
1

Change Sequcene Id

("MyEntity$identity"); long currentValue = seq.currentValue(); // I would like to change currentValue ... (strategy=GenerationType.IDENTITY)     private Long id; }   You cannot set the next id of an existing