Posted
almost 17 years
ago
Hello all,
I have two tables, "users" and "game_data". Both have the same primary key id.
Code:
public class User {
@Id
@Column(name="id")
@GeneratedValue(strategy=GenerationType.IDENTITY)
int id;
@OneToOne(cascade=CascadeType.ALL, mappedBy="user")
GameData gameData;
....
public class GameData {
@Id
...
|
Posted
almost 17 years
ago
I have just upgraded jpox lib to 1.2.1 and some of our business tests failed (tests were ok with jpox 1.2).
When we try to remove an element from a set in optimitic mode the element is removed from the collection but not from the db :-(
It seems
|
Posted
almost 17 years
ago
Version 1.2.1 of JPOX Core/RDBMS/DB4O/Java5 plugins are now released. These are bug fix releases. They fix two issues with memory leaks in 1.2.0, an issue with value generation, and a significant performance improvement in the attach of an object
|
Posted
almost 17 years
ago
Does JPOX support aggregation ?
Lukasz
|
Posted
almost 17 years
ago
Hi experts [:)]
I've got question. I use new table inheritance strategie.
My schema looks like that :
Product
{product_id PK,
name,
}
Book
{
book_id (FK from produkt)
date;
}
How to point in meta-data file in class Book that i want to map product_id from Product to book_id in Book ?
|
Posted
almost 17 years
ago
Is there anyway to programatcly retrieve the schema information of a specific table? (constraints, column names, column type, size)
By the way. does jpox have support for trigger definition? If yes, how can this be implemented?
Thanks on advance,
Paulo
|
Posted
almost 17 years
ago
Using JDK 1.4, JPOX 1.2
The org.jpox.store.rdbms.SQLController class contains a JDK 1.5 specific call in the processConnectionStatement() method.
[code] if(JPOXLogger.DATASTORE.isDebugEnabled())
JPOXLogger.DATASTORE.debug(LOCALISER.msg("045001", "" (System.currentTimeMillis() - startTime), Arrays.toString(ind)));[/code]
|
Posted
almost 17 years
ago
i can use log4j but i think that it is not a good practice using glassfish. The best practice is to use the integrated glassfish log, that means java.util.loggin
I think it is a bug in glassfish. I will report it in glassfish database.
But
|
Posted
almost 17 years
ago
Hi , I'm new in JPOX . I've got some problem when i want to auto-increment id in database.
On this site
http://www.jpox.org/docs/1_2/identity_generation.html#increment
i read that i can use increment but it doesn't work. My class looks :
|
Posted
almost 17 years
ago
I have a bidrectional one to many of A ---* B implemented as a HashSet.
class A
{
HashSet bCollection;
}
class B
{
A a;
}
Now B implements the Comparable interface because these objects are occassionally temporarily stored in a
|