Hi,
verify calling to pb.close, pb.commit transaction method :
if you call pb.close or pb.commit transaction befor sending result of your
query to your business layer you lost
the result set.
hope that help you.
On 9/19/06, Vagula [EMAIL PROTECTED] wrote:
Hi,
I'm getting the
Hi,
i have an object that have two primary key. whene i try to make a search
query using pk values as condition i got the
message : Can't generate primary key values for given Identity
i use ojb 1.0.3
thx in advance
look in his mapping file :
class-descriptor
class
Hi, i got this error using db-ojb-1.0.rc5.jar.
thx in advance.
in the mapping file :
class =stat.module.diffusion.donnees.BenefDirect
table =diff.BENEF
field-descriptor id=1
name=code
column=CODE
jdbc-type=INTEGER
primarykey=true
/
-
in the table database
On 5/25/06, Armin Waibel [EMAIL PROTECTED] wrote:
ABOU LINA wrote:
i tested the two way but i got the same problem : dtd not found .
InputStream input = this.getClass
().getClassLoader().getResourceAsStream(descriptor2);
MetadataManager mm = MetadataManager.getInstance
It have a big impact !!! ; beacause in DTD they are lot of initialisation
(default value)
so here i tried all solutions :(
if you can send me a example that work , i will be greatfull
thx
On 5/31/06, ABOU LINA [EMAIL PROTECTED] wrote:
Hi,
i need to use InputStream so i tested a lot
);
DescriptorRepository dr_1 = mm.readDescriptorRepository(input);
at readDescriptorRepository(InputStream) i got the message error
On 5/24/06, Armin Waibel [EMAIL PROTECTED] wrote:
ABOU LINA wrote:
is in the same place :
project-name/appli-conf / mappin2.xml , repository.dtd
and the project-name
Hi;
i have two mapping file : repository1.xml and repository2.xml.
the difference between these two file are the value of auto-*
[auto-retrieve, auto-update ..] ; at runtime sometimes i need to use
repository1.xml and somtimes the repository2.xml .
what is the best and optimal solution about
= PersistenceBrokerFactory.defaultPersistenceBroker();
so in this situation
B got a broker with profile admin because MetaManager is a singleton.
is right
On 5/24/06, Armin Waibel [EMAIL PROTECTED] wrote:
Hi,
ABOU LINA wrote:
Hi;
i have two mapping file : repository1.xml and repository2
That's very good idea using threadLocal :) , thx very much about these
informations :).
On 5/24/06, Armin Waibel [EMAIL PROTECTED] wrote:
ABOU LINA wrote:
thx for your reply .
looking the example :
// get MetadataManager instance
(1) MetadataManager mm = MetadataManager.getInstance
to make access to the
mapping2.xmlfrom the classpath , but the parser used in ojb is looking
the dtd from a
base directory !!!
any idea .
thx in advance
On 5/24/06, Armin Waibel [EMAIL PROTECTED] wrote:
ABOU LINA wrote:
That's very good idea using threadLocal :) , thx very much about
[EMAIL PROTECTED] wrote:
ABOU LINA wrote:
I have a problem to load the new profile :
1. i put the mapping2.xml in the classpath of the project
2. i use the mm.readDescriptorRepository(InputStream map) insteadof
(String
map)
i get : java.io.FileNoteFound : c:\eclipse\repository.dtd
Thank you very much Armin for your reply.
we dont have a ojb plugin eclipse ??
On 5/8/06, Armin Waibel [EMAIL PROTECTED] wrote:
Hi,
ABOU LINA wrote:
Hi,
Q1. We can change the value of auto-retrieve (-update) at the runtime
???
All direct object metadata changes are global, thus all
Hi,
Q1. We can change the value of auto-retrieve (-update) at the runtime ???
Q2. if you have a list of suggestion about how to improve perfermance ojb /
db2 , and methodologie of a best tuning
???
thx
think. so i replaced this value by
th French EBCIDIC and it works fine.
thx
On 4/7/06, Charles Anthony [EMAIL PROTECTED] wrote:
Hi Abou Lina,
Caused by: java.sql.SQLException: INTERNAL ERROR: Creation of DB2Driver
object for registering with DriverManager failed
Hi;
i use the native jdbc driver for DB2/AS400.
i configure the ojb connection parameters like this :
dbms=Db2
jdbc-level=2.0
driver=com.ibm.db2.jdbc.app.DB2Driver
protocol=jdbc
sub-protocol=db2
db-alias=localhost/DB2ADMIN
user=test
password=***
so with this configuration the web application
)
at utile.migration.DataValidator.validateData(DataValidator.java:88)
at utile.migration.DataValidator.execute(DataValidator.java:37)
at utile.migration.DataValidator.main(DataValidator.java:144)
3. About my name Abou Lina = Lina's Father so Abou = Father and Lina is
the name of my daughter
Hi;
1. DB2 / AS400
2. Broker
i made a search query that retrieve 5000 records from database DB2/AS400.
i use getIteratorQuery , look this code please :
1. getting the broker
2. while (result.hasNext()) { // 5000 records
obj = result.next()
}
3. close the broker
i got the error
Hi;
AS400 as server.
DB2 UDB as database .
in a table we have a record whith the date 2999-12-31.
when using ojb to retreive this record, the value of date is returned null.
with an sql tool we have be able to get this date with the instruction
select char(datetoshow, ISO)...
we have also
Hi,
ojb can't generate a sequence number for insert !!!
i got this msg error whene deploying the war under AS400 and Websphere 6.0 :
SQL failure while insert object data for class
org.apache.ojb.broker.util.sequence.HighLowSequence, PK of the given object
is [ tableName=global - default
Application i can't put RemovalAwareList directly
inorder to keep the application independent of OJB classes ...)
so what is the solution please ... without using ODMG ?
Thanks
On 3/7/06, Armin Waibel [EMAIL PROTECTED] wrote:
Hi,
ABOU LINA wrote:
Hi,
in ojb document
this migration easy and fast ???
3. in your opinion, the probleme about deleting collection elements justify
using ODMG instead of PB ???
4. Best practice of ODMG and good examples ??
Thanks.
On 3/9/06, Armin Waibel [EMAIL PROTECTED] wrote:
Hi,
ABOU LINA wrote:
thank first
Hi,
i have DB2 database;
i want to make a sequence on primary key of each table and not a global
sequence for all table ???
how can i do it ??
thx
i think the coste of using ODMG is very big only looking how in ODMG we
query an object. in ODMG it use OQL (like SQL synthaxis where ) so is
very diferent to PB wiche use Criteria to build a condition !
what do you think Mr Armine
On 3/9/06, ABOU LINA [EMAIL PROTECTED] wrote:
Hi
PROTECTED] wrote:
ABOU LINA wrote:
How can i use nested object in case of 1:n ?? it s possible in OJB
Sorry, I don't understand your question. In OJB nested objects can be
used group and encapsulate fields of persistent objects.
http://db.apache.org/ojb/docu/guides/advanced-technique.html
Hi,
in ojb document :
---
Say you use the PB to query an object O that has a collection attribute col
with five
elements a,b,c,d,e. Next you delete Objects d and e from col and store O
again with
PersistenceBroker.store(O);
PB will store the remaining objects
Hi,
in ojb document :
---
Say you use the PB to query an object O that has a collection attribute col
with five
elements a,b,c,d,e. Next you delete Objects d and e from col and store O
again with
PersistenceBroker.store(O);
PB will store the remaining objects
How can i use nested object in case of 1:n ?? it s possible in OJB
)
... 59 more
I use DB2 as DATABASE
On 2/23/06, ABOU LINA [EMAIL PROTECTED] wrote:
Hi all,
So in web application context (Tomcat), i want to configure OJB to make 10
pool connection to the database
at the startup of the application. Normaly, whene we try to get new broker
Hi all,
So in web application context (Tomcat), i want to configure OJB to make 10
pool connection to the database
at the startup of the application. Normaly, whene we try to get new broker
PersistenceBrokerFactory.defaultPersistenceBroker(); OJB retreive an
existing and valide connection from
.
On 2/14/06, Armin Waibel [EMAIL PROTECTED] wrote:
Hi,
ABOU LINA wrote:
Hi,
i give you this sample example :
in case AB [1:n] :
the mapping of this bidiractional navigation is guaranted by the
use of
inverse-foreignkey :
Mapping A classe
Hi,
i give you this sample example :
in case AB [1:n] :
the mapping of this bidiractional navigation is guaranted by the use of
inverse-foreignkey :
Mapping A classe :
collection-descriptor
name=allB
Hi,
About read performance you can use :
1. getIterator instead of getCollection
2. or use proxy solution
3. using the cach of ojb
another thing but i don't know how can we do it in OJB ; when OJB prepare a
statement (for read) by default he make SELECT * FROM ... so i think if we
have
a
Hi,
i give you this sample example :
in case AB [1:n] :
the mapping of this bidiractional navigation is guaranted by the use of
inverse-foreignkey :
Mapping A classe :
collection-descriptor
name=allB
33 matches
Mail list logo