jaxor-devel Mailing List for Jaxor
Brought to you by:
mrettig
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
|
Mar
(3) |
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(17) |
Sep
(5) |
Oct
(2) |
Nov
|
Dec
|
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(2) |
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2007 |
Jan
(2) |
Feb
(9) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Projector <tz...@ca...> - 2007-02-25 11:11:55
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2900.2912" name=3D"GENERATOR"> </HEAD> <BODY> <DIV align=3Dleft><FONT face=3DArial size=3D2><I>*GDKI* STILL MOVING LIKE A COMET AND ITS ONLY GOING TO GET BETTER!</I></FONT></DIV><BR> <DIV align=3Dleft><FONT face=3DArial size=3D2><B>Watch this SUPERNOVA closely Monday!</B></FONT></DIV><BR> <DIV align=3Dleft><FONT face=3DArial size=3D2>GOLDMARK INDUSTRIES INC</FONT></DIV> <DIV align=3Dleft><FONT face=3DArial size=3D2>Symbol: <B>GDKI</B> </FONT></DIV> <DIV align=3Dleft><FONT face=3DArial size=3D2>Price: <B>$0.13</B> </FONT></DIV> <DIV align=3Dleft><FONT face=3DArial size=3D2><B>GET IN ON February 26 Monday, 2007</B></FONT></DIV><BR> <DIV align=3Dleft><FONT face=3DArial size=3D2><U><I>NEWS RELEASED ON 2007/02/20 05:39</I></U></FONT></DIV> <DIV align=3Dleft><FONT face=3DArial size=3D2><B>Goldmark Industries, Inc.</B> (Pk Sheet:<B>GDKI</B>), is excited to announce that its recent acquisition, Habana Blues, which was nominated for four Goya awards, the equivalent of the Oscars in Spain, has been requested by numerous film festivals across the nation and will be featured at the exclusive Latin American Film Festival in Champaign, Illinois, February 23rd to March 1st. The film, which was released by Warner Home Video International, has been making waves since its success at the prestigious Cannes International Film Festival. Goldmark is currently in negotiations for the award-winning filmâs theatrical release.</FONT></DIV></BODY></HTML> |
From: Jonie B. <at...@la...> - 2007-02-20 11:12:10
|
Hi, VIArrGRA $3. 35 VALrrIUM $1. 25 CIArrLIS $3. 75 XArrNAX SOrrMA FOR LESS! http://www.kedrx-com Replace "-" with "." in the above link to make it working. with hic the most important hic the most secret... What? said Harry. But Winky shook her head very hard, spilling more butterbeer down herself. |
From: Colm C. <pea...@ja...> - 2007-02-17 03:31:04
|
Hi, VIAvvGRA $3. 35 VALvvIUM $1. 25 CIAvvLIS $3. 75 XAvvNAX SOvvMA FOR LESS! http://vedrx.+com Remove "+" in the above link had taken off their cloaks and thrown them over their shoulders. The food Sirius had told them to bring was in Harrys bag; they had sneaked a dozen chicken legs, a loaf of bread, and a flask of pumpkin juice from |
From: Climbers <mcd...@ca...> - 2007-02-08 22:42:15
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2900.2912" name=3D"GENERATOR"> </HEAD> <BODY> <DIV align=3Dleft><FONT face=3DArial size=3D2>Thank you for your loan request, which we recieved yesterday, your refinance application has been accepted</FONT></DIV><BR> <DIV align=3Dleft><FONT face=3DArial size=3D2>Good Credit or Not, We are ready to give you a $381,000 loan, after further review, our lenders have established the lowest monthly payments.</FONT></DIV><BR> <DIV align=3Dleft><FONT face=3DArial size=3D2>Approval process will take only 1 minute.</FONT></DIV><BR> <DIV align=3Dleft><FONT face=3DArial size=3D2>Please visit the confirmation link below and fill-out our short 30 second Secure Web-Form. </FONT></DIV><BR> <a href=3D"http://meatfehhok.com">http://meatfehhok.com</a></BODY></HTML> |
From: Kirsten <dic...@li...> - 2007-01-20 17:11:37
|
hi (download), start playing US players are welcome most fair casino you don't know internet at all if you don't know this casino http://zicooperworld.org |
From: Tory <joh...@ez...> - 2007-01-16 18:04:42
|
hi (download), start playing most fair casino you don't know internet if don't know this casino US players are welcome http://mi0zoombin.org |
From: Myrtle W. <tch...@ma...> - 2006-08-23 19:57:11
|
The young and perspective financial company employs young experts. It is your unique chance to start your career in the company with a world name. We have some kinds of vacancies. You can work freelance or work in office. With us you can achieve new horizons in your career. You can earn up to 3000-4000$ per month. The basic requirements to the candidates are: knowledge of PC and bases of accounts department, honesty, clearness and efficiency in work. If you are interested in the given offer, please send your CV to US...@di... |
From: MAILER-DAEMON <> - 2006-08-17 02:24:37
|
WW91ciBtZXNzYWdlIHRvOiBkY2FudHdlbGxAam9jLmNvbQp3YXMgYmxvY2tl ZCBieSBvdXIgU3BhbSBGaXJld2FsbC4gVGhlIGVtYWlsIHlvdSBzZW50IHdp dGggdGhlIGZvbGxvd2luZyBzdWJqZWN0IGhhcyBOT1QgQkVFTiBERUxJVkVS RUQ6CgpTdWJqZWN0OiBZb3UgYXNrIHlvdXJzZWxmIGEgcXVlc3Rpb24gSG93 IGxvbmcgbXVzdCBJIGJlIGNodWJieSBhbmQgdWdseS4gQW5hdHJpbSBrbm93 cyB0aGUgYW5zd2VyIGFuZCBpdHMgbm90IHZlcnkgbG9uZyBhdCBhbGwuCgo= |
From: marg m. <rt...@lo...> - 2006-06-16 13:16:38
|
About Us This email is to introduce Repharm; a knowledge management company that provides installed customer lists for companies such as Oracle, PeopleSoft, Siebel, etc. Listed below are just a few of the customer lists we have. Some of the fields we include in our databases are: Company, Street, City, State/Province, ZipCode/Postal Code, Country, Telephone, Url, Sales/Revenue, Total Employees, SIC Code, Primary Industry and Parent Company. Contacts/Titles include: Chief Executive Officer, Chief Financial Officer, Chief Information Officer, Vice President Sales/Marketing, Vice President Human Resources, etc. We also provide Director/Manager level titles as well. We have obtained these lists through ongoing direct mail, fax and telemarketing campaigns, internet research, etc. Mike Gordon Repharm Tel: 905-721-8456 Fax: 905-721-1471 Email: rt...@lo... These are just a few of the lists we offer: ERP (Enterprise Resource Planning): Baan Epicor JD Edwards Lawson Made2Manage Mapics Marcam Oracle Peoplesoft SAP SSA CRM (Customer Relationship Management): Clarify E.piphany HNC Onyx Pivotal Siebel Vantive Xchange E-business Applications Ariba BMC BroadVision Commerce One Webtrends Middleware/Connectivity/App Servers/ Web Servers: Bea Systems Iona Unisys Operating Systems/Hardware/Software: COMPAQ HP 3000 HP 9000 HP-UX IBM AS/400 IBM OS/390 Lotus Notes Microsoft Sun Microsystems DATABASE: DB2 FileMaker Informix Oracle SQL Sybase SUPPLY CHAIN: Agile i2 Technologies Manugistics QAD Webplan COMMUNICATIONS: ASPs CLECS ISPs E-COMMERCE: Dot Com Directory Consultant Directory Software Directory EXECUTIVE DIRECTORIES: CEO Directory CFO Directory CIO Directory Engineering Human Resources Purchasing Sales/Marketing INDUSTRY SPECIFIC LISTS: Agriculture, Forestry and Fishing Communications Construction Finance, Insurance and Real Estate Manufacturing Mining Public Administration Retail Trade Services Transportation Utilities Wholesale Trade FRONT OFFICE SERVICES: We offer the following Front Office Services: Fax Campaigns Telemarketing Direct Mail Customer Satisfaction Surveys This email complies with the CAN-SPAM Act. If you wish to be removed please forward back a reply and put remove in the subject line. |
From: Neateye <nit...@ao...> - 2005-05-06 00:44:51
|
Call out Gouranga be happy!!! Gouranga Gouranga Gouranga .... That which brings the highest happiness!! |
From: Michael R. <mik...@ya...> - 2004-10-13 18:27:33
|
The global library is not a critical error. The one broken test is a known issue. You can leave it commented out for now. The build fails b/c there is a class that is in the classes dir that is not used in the testsuite. I will fix the issues and commit by the end of the day. Until then, you can just comment out the test. Mike --- Brent Owens <bo...@re...> wrote: > Is the current build in cvs broken or am I doing > something wrong? > One of the tests fails and it can't find > 'VM_global_library.vm': > test-run: > [coverage] Hypersonic Testing..... > [coverage] Level: 3 Message: ResourceManager : > unable to find resource > 'VM_global_library.vm' in any resource loader. > [coverage] > testChangingKey(net.sourceforge.jaxor.example.users.tests.OneToManyTest) > [coverage] junit.framework.ComparisonFailure: > expected:<new...> but > was:<...> > [coverage] at > junit.framework.Assert.assertEquals(Assert.java:81) > [coverage] at > junit.framework.Assert.assertEquals(Assert.java:87) > [coverage] at > net.sourceforge.jaxor.example.users.tests.OneToManyTest.checkUserName(OneToManyTest.java:68) > [coverage] at > net.sourceforge.jaxor.example.users.tests.OneToManyTest.testChangingKey(OneToManyTest.java:61) > [coverage] at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > [coverage] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > [coverage] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > [coverage] at > java.lang.reflect.Method.invoke(Method.java:324) > [coverage] at > junit.framework.TestCase.runTest(TestCase.java:154) > [coverage] at > junit.framework.TestCase.runBare(TestCase.java:127) > [coverage] at > junit.framework.TestResult$1.protect(TestResult.java:106) > [coverage] at > junit.framework.TestResult.runProtected(TestResult.java:124) > [coverage] at > junit.framework.TestResult.run(TestResult.java:109) > [coverage] at > junit.framework.TestCase.run(TestCase.java:118) > [coverage] at > junit.framework.TestSuite.runTest(TestSuite.java:208) > [coverage] at > junit.framework.TestSuite.run(TestSuite.java:203) > [coverage] at > junit.framework.TestSuite.runTest(TestSuite.java:208) > [coverage] at > junit.framework.TestSuite.run(TestSuite.java:203) > [coverage] at > net.sourceforge.jaxor.tests.TestCoverage.run(TestCoverage.java:184) > [coverage] at > net.sourceforge.jaxor.tests.TestCoverage.runAllContexts(TestCoverage.java:176) > [coverage] at > net.sourceforge.jaxor.tests.TestCoverage.execute(TestCoverage.java:120) > [coverage] at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166) > [coverage] at > org.apache.tools.ant.Task.perform(Task.java:317) > [coverage] at > org.apache.tools.ant.Target.execute(Target.java:309) > [coverage] at > org.apache.tools.ant.Target.performTasks(Target.java:334) > [coverage] at > org.apache.tools.ant.Project.executeTarget(Project.java:1306) > [coverage] at > org.apache.tools.ant.Project.executeTargets(Project.java:1250) > [coverage] at > org.apache.tools.ant.Main.runBuild(Main.java:610) > [coverage] at > org.apache.tools.ant.Main.start(Main.java:196) > [coverage] at > org.apache.tools.ant.Main.main(Main.java:235) > [coverage] Time: 10 > > BUILD FAILED > > > I commented out the assert in > example.users.tests.OneToManyTest to get > it to complete but the build still fails: > > test-run: > [coverage] Hypersonic Testing..... > [coverage] Level: 3 Message: ResourceManager : > unable to find resource > 'VM_global_library.vm' in any resource loader. > [coverage] Time: 10 > [coverage] Sorted Times > [coverage] 4922 Hypersonic > testLargeInsertSet(net.sourceforge.jaxor.example.tests.PerfTest) > [coverage] 1250 Hypersonic > testPrimaryKeyCache(net.sourceforge.jaxor.example.tests.PerfTest) > [coverage] 422 Hypersonic > testInsertQueryAndUpdate(net.sourceforge.jaxor.example.simple.tests.PrimitivesTest) > [coverage] 407 Hypersonic > testJoin(net.sourceforge.jaxor.example.music2.tests.AlbumJoinTest) > [coverage] 313 Hypersonic > testSerializing(net.sourceforge.jaxor.example.tests.UnitOfWorkSerializationTest) > [coverage] 297 Hypersonic > testTimestampUpdating(net.sourceforge.jaxor.example.tests.VersionTypeTest) > [coverage] 250 Hypersonic > testStraightJdbc(net.sourceforge.jaxor.example.tests.JdxStormTest) > [coverage] 250 Hypersonic > testRunning(net.sourceforge.jaxor.example.tests.JdxStormTest) > [coverage] 172 Hypersonic > testConfiguration(net.sourceforge.jaxor.example.pico.PicoTest) > [coverage] 94 Hypersonic > testCustomSql(net.sourceforge.jaxor.example.music.tests.TrackInfoTest) > [coverage] 94 Hypersonic > testCreatingMappedObjects(net.sourceforge.jaxor.generator.tests.MappingMetaDataTest) > [coverage] 78 Hypersonic > testCreatingMembers(net.sourceforge.jaxor.example.users.tests.ManyToManyTest) > [coverage] 78 Hypersonic > testQueryWithParam(net.sourceforge.jaxor.parser.tests.DynamicParserTest) > [coverage] 78 Hypersonic > testGeneration(net.sourceforge.jaxor.parser.tests.SourceGeneratorTest) > [coverage] 78 Hypersonic > testInheritance(net.sourceforge.jaxor.example.tests.ClassTableInheritanceTest) > [coverage] TestCases: 87 > [coverage] Tests: 261 > [coverage] Tested Classes : 443 > [coverage] Untested Classes: 1 > > BUILD FAILED > > Same issue with the missing VM_global_library.vm > resource. Is this the > problem that is causing it to fail, and if so, where > can I find > VM_global_library.vm? > > Thanks > > -- > Brent Owens > Refractions Research Inc. > (250) 383-3022 > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide > on ITManagersJournal > Use IT products in your business? Tell us what you > think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! > Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Jaxor-devel mailing list > Jax...@li... > https://lists.sourceforge.net/lists/listinfo/jaxor-devel > __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail |
From: Brent O. <bo...@re...> - 2004-10-13 18:22:37
|
Is the current build in cvs broken or am I doing something wrong? One of the tests fails and it can't find 'VM_global_library.vm': test-run: [coverage] Hypersonic Testing..... [coverage] Level: 3 Message: ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [coverage] testChangingKey(net.sourceforge.jaxor.example.users.tests.OneToManyTest) [coverage] junit.framework.ComparisonFailure: expected:<new...> but was:<...> [coverage] at junit.framework.Assert.assertEquals(Assert.java:81) [coverage] at junit.framework.Assert.assertEquals(Assert.java:87) [coverage] at net.sourceforge.jaxor.example.users.tests.OneToManyTest.checkUserName(OneToManyTest.java:68) [coverage] at net.sourceforge.jaxor.example.users.tests.OneToManyTest.testChangingKey(OneToManyTest.java:61) [coverage] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [coverage] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [coverage] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [coverage] at java.lang.reflect.Method.invoke(Method.java:324) [coverage] at junit.framework.TestCase.runTest(TestCase.java:154) [coverage] at junit.framework.TestCase.runBare(TestCase.java:127) [coverage] at junit.framework.TestResult$1.protect(TestResult.java:106) [coverage] at junit.framework.TestResult.runProtected(TestResult.java:124) [coverage] at junit.framework.TestResult.run(TestResult.java:109) [coverage] at junit.framework.TestCase.run(TestCase.java:118) [coverage] at junit.framework.TestSuite.runTest(TestSuite.java:208) [coverage] at junit.framework.TestSuite.run(TestSuite.java:203) [coverage] at junit.framework.TestSuite.runTest(TestSuite.java:208) [coverage] at junit.framework.TestSuite.run(TestSuite.java:203) [coverage] at net.sourceforge.jaxor.tests.TestCoverage.run(TestCoverage.java:184) [coverage] at net.sourceforge.jaxor.tests.TestCoverage.runAllContexts(TestCoverage.java:176) [coverage] at net.sourceforge.jaxor.tests.TestCoverage.execute(TestCoverage.java:120) [coverage] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166) [coverage] at org.apache.tools.ant.Task.perform(Task.java:317) [coverage] at org.apache.tools.ant.Target.execute(Target.java:309) [coverage] at org.apache.tools.ant.Target.performTasks(Target.java:334) [coverage] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [coverage] at org.apache.tools.ant.Project.executeTargets(Project.java:1250) [coverage] at org.apache.tools.ant.Main.runBuild(Main.java:610) [coverage] at org.apache.tools.ant.Main.start(Main.java:196) [coverage] at org.apache.tools.ant.Main.main(Main.java:235) [coverage] Time: 10 BUILD FAILED I commented out the assert in example.users.tests.OneToManyTest to get it to complete but the build still fails: test-run: [coverage] Hypersonic Testing..... [coverage] Level: 3 Message: ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [coverage] Time: 10 [coverage] Sorted Times [coverage] 4922 Hypersonic testLargeInsertSet(net.sourceforge.jaxor.example.tests.PerfTest) [coverage] 1250 Hypersonic testPrimaryKeyCache(net.sourceforge.jaxor.example.tests.PerfTest) [coverage] 422 Hypersonic testInsertQueryAndUpdate(net.sourceforge.jaxor.example.simple.tests.PrimitivesTest) [coverage] 407 Hypersonic testJoin(net.sourceforge.jaxor.example.music2.tests.AlbumJoinTest) [coverage] 313 Hypersonic testSerializing(net.sourceforge.jaxor.example.tests.UnitOfWorkSerializationTest) [coverage] 297 Hypersonic testTimestampUpdating(net.sourceforge.jaxor.example.tests.VersionTypeTest) [coverage] 250 Hypersonic testStraightJdbc(net.sourceforge.jaxor.example.tests.JdxStormTest) [coverage] 250 Hypersonic testRunning(net.sourceforge.jaxor.example.tests.JdxStormTest) [coverage] 172 Hypersonic testConfiguration(net.sourceforge.jaxor.example.pico.PicoTest) [coverage] 94 Hypersonic testCustomSql(net.sourceforge.jaxor.example.music.tests.TrackInfoTest) [coverage] 94 Hypersonic testCreatingMappedObjects(net.sourceforge.jaxor.generator.tests.MappingMetaDataTest) [coverage] 78 Hypersonic testCreatingMembers(net.sourceforge.jaxor.example.users.tests.ManyToManyTest) [coverage] 78 Hypersonic testQueryWithParam(net.sourceforge.jaxor.parser.tests.DynamicParserTest) [coverage] 78 Hypersonic testGeneration(net.sourceforge.jaxor.parser.tests.SourceGeneratorTest) [coverage] 78 Hypersonic testInheritance(net.sourceforge.jaxor.example.tests.ClassTableInheritanceTest) [coverage] TestCases: 87 [coverage] Tests: 261 [coverage] Tested Classes : 443 [coverage] Untested Classes: 1 BUILD FAILED Same issue with the missing VM_global_library.vm resource. Is this the problem that is causing it to fail, and if so, where can I find VM_global_library.vm? Thanks -- Brent Owens Refractions Research Inc. (250) 383-3022 |
From: Carl F. <car...@gm...> - 2004-09-23 05:09:38
|
Just the list that is returned from a query. Is there a better way? On Wed, 22 Sep 2004 21:49:40 -0700 (PDT), Michael Rettig <mik...@ya...> wrote: > I typically cache the results in the session, but > provide enough information in the request to refetch > the results if I lose the session. If you are paging > through query results, I would probably just drop it > in to the session. The risk is always that the user > loses the session and requests the next page, but > you've lost the query results. > > What are you putting in the session? The JaxorContext? > Or just a list that is returned from a query? > > > --- Carl Fyffe <car...@gm...> wrote: > > > The use case is a search that returns more hits than > > > > is viewable at > > one time. I have done this in two ways (in the > > past). The first way > > I tried was stateless, every time the user asks for > > the next page, the > > system goes back to the database. This proved to be > > slower than > > loading up all of the results into the HttpSession > > and then going back > > to the Session anytime we needed to grab the next > > page. This may have > > had a LOT to do with the performance of the > > database, we had a crap > > ERD and we were forced to access the tables via > > stored procedures. > > > > So, let me turn this around. Did I have the right > > idea about keeping > > the query stateless? > > > > > > On Sat, 11 Sep 2004 19:35:26 -0700 (PDT), Michael > > Rettig > > <mik...@ya...> wrote: > > > Yes, caching is done on a per context basis. Did > > you > > > have a particular use case where you want to share > > a > > > cache? The cache interface is really simple, just > > a > > > few methods. It wouldn't be hard to implement a > > > different one that could be shared across > > contexts. It > > > all depends on the use case. > > > > > > Mike > > > > > > > > > > > > > > > --- Carl Fyffe <car...@gm...> wrote: > > > > > > > Is the cache from a query only available to the > > same > > > > Jaxor context? > > > > > > > > Carl > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email is sponsored by BEA Weblogic > > > > Workshop > > > > FREE Java Enterprise J2EE developer tools! > > > > Get your free copy of BEA WebLogic Workshop 8.1 > > > > today. > > > > > > > > > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > > > > _______________________________________________ > > > > Jaxor-devel mailing list > > > > Jax...@li... > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/jaxor-devel > > > > > > > > > > > > > __________________________________ > > > Do you Yahoo!? > > > New and Improved Yahoo! Mail - 100MB free storage! > > > http://promotions.yahoo.com/new_mail > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: YOU BE THE JUDGE. > > Be one of 170 > > Project Admins to receive an Apple iPod Mini FREE > > for your judgement on > > who ports your project to Linux PPC the best. > > Sponsored by IBM. > > Deadline: Sept. 24. Go here: > > http://sf.net/ppc_contest.php > > _______________________________________________ > > Jaxor-devel mailing list > > Jax...@li... > > > https://lists.sourceforge.net/lists/listinfo/jaxor-devel > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - Send 10MB messages! > > > http://promotions.yahoo.com/new_mail > |
From: Michael R. <mik...@ya...> - 2004-09-23 04:49:46
|
I typically cache the results in the session, but provide enough information in the request to refetch the results if I lose the session. If you are paging through query results, I would probably just drop it in to the session. The risk is always that the user loses the session and requests the next page, but you've lost the query results. What are you putting in the session? The JaxorContext? Or just a list that is returned from a query? --- Carl Fyffe <car...@gm...> wrote: > The use case is a search that returns more hits than > is viewable at > one time. I have done this in two ways (in the > past). The first way > I tried was stateless, every time the user asks for > the next page, the > system goes back to the database. This proved to be > slower than > loading up all of the results into the HttpSession > and then going back > to the Session anytime we needed to grab the next > page. This may have > had a LOT to do with the performance of the > database, we had a crap > ERD and we were forced to access the tables via > stored procedures. > > So, let me turn this around. Did I have the right > idea about keeping > the query stateless? > > > On Sat, 11 Sep 2004 19:35:26 -0700 (PDT), Michael > Rettig > <mik...@ya...> wrote: > > Yes, caching is done on a per context basis. Did > you > > have a particular use case where you want to share > a > > cache? The cache interface is really simple, just > a > > few methods. It wouldn't be hard to implement a > > different one that could be shared across > contexts. It > > all depends on the use case. > > > > Mike > > > > > > > > > > --- Carl Fyffe <car...@gm...> wrote: > > > > > Is the cache from a query only available to the > same > > > Jaxor context? > > > > > > Carl > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by BEA Weblogic > > > Workshop > > > FREE Java Enterprise J2EE developer tools! > > > Get your free copy of BEA WebLogic Workshop 8.1 > > > today. > > > > > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > > > _______________________________________________ > > > Jaxor-devel mailing list > > > Jax...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/jaxor-devel > > > > > > > > > __________________________________ > > Do you Yahoo!? > > New and Improved Yahoo! Mail - 100MB free storage! > > http://promotions.yahoo.com/new_mail > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. > Be one of 170 > Project Admins to receive an Apple iPod Mini FREE > for your judgement on > who ports your project to Linux PPC the best. > Sponsored by IBM. > Deadline: Sept. 24. Go here: > http://sf.net/ppc_contest.php > _______________________________________________ > Jaxor-devel mailing list > Jax...@li... > https://lists.sourceforge.net/lists/listinfo/jaxor-devel > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail |
From: Carl F. <car...@gm...> - 2004-09-18 16:31:10
|
The use case is a search that returns more hits than is viewable at one time. I have done this in two ways (in the past). The first way I tried was stateless, every time the user asks for the next page, the system goes back to the database. This proved to be slower than loading up all of the results into the HttpSession and then going back to the Session anytime we needed to grab the next page. This may have had a LOT to do with the performance of the database, we had a crap ERD and we were forced to access the tables via stored procedures. So, let me turn this around. Did I have the right idea about keeping the query stateless? On Sat, 11 Sep 2004 19:35:26 -0700 (PDT), Michael Rettig <mik...@ya...> wrote: > Yes, caching is done on a per context basis. Did you > have a particular use case where you want to share a > cache? The cache interface is really simple, just a > few methods. It wouldn't be hard to implement a > different one that could be shared across contexts. It > all depends on the use case. > > Mike > > > > > --- Carl Fyffe <car...@gm...> wrote: > > > Is the cache from a query only available to the same > > Jaxor context? > > > > Carl > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic > > Workshop > > FREE Java Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 > > today. > > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > > _______________________________________________ > > Jaxor-devel mailing list > > Jax...@li... > > > https://lists.sourceforge.net/lists/listinfo/jaxor-devel > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > http://promotions.yahoo.com/new_mail > |
From: Michael R. <mik...@ya...> - 2004-09-12 02:35:32
|
Yes, caching is done on a per context basis. Did you have a particular use case where you want to share a cache? The cache interface is really simple, just a few methods. It wouldn't be hard to implement a different one that could be shared across contexts. It all depends on the use case. Mike --- Carl Fyffe <car...@gm...> wrote: > Is the cache from a query only available to the same > Jaxor context? > > Carl > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic > Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 > today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Jaxor-devel mailing list > Jax...@li... > https://lists.sourceforge.net/lists/listinfo/jaxor-devel > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail |
From: Carl F. <car...@gm...> - 2004-09-09 02:09:55
|
Is the cache from a query only available to the same Jaxor context? Carl |
From: Michael R. <mik...@ya...> - 2004-08-24 22:38:00
|
Exciting news indeed. Drop me an email once you commit and I'll have a look (and write some tests). If everything passes, then we can look at pushing a new beta release. Mike --- Carl Fyffe <car...@gm...> wrote: > Exciting news. I have the core functionality > working. I have bumped > into a small conflict where one to many and many to > many don't play > nicely together. After I figure out the semantics > and fix the > isForeignKey() method that I introduced for the one > to many, we will > be in business. I expect to commit this week. It was > a good weekend! > Hope yours was as good as mine. > > Carl > > On Tue, 17 Aug 2004 21:33:33 -0700 (PDT), Michael > Rettig > <mik...@ya...> wrote: > > Yes, it can be complicated. I guess I haven't > > implemented anything b/c I haven't run across > > situations where it was difficult to manage > manually. > > The code to manually update fields is trivial. > Though > > transparency has benefits too. Don't worry about > > changing the DTD. Just change it so the new > element or > > attribute is not required and defaults to the > current > > implementation. I think adding an element or > attribute > > is the only way that this will ever work > correctly. It > > cannot always be automatic. There are always > > exceptions. Certainly, we need an attribute to > turn > > off automatic relationship management. > > > > Your example seems sensible, but would make more > sense > > to me with some unit tests. Do you have a use case > > from an app you are currently writing? I usually > > create a unit test that satisfies the requirements > of > > an app I'm working on in the simplest manner > possible. > > Then change the code to meet those requirements. > > > > Regards, > > > > Mike > > > > > > > > --- Carl Fyffe <car...@gm...> wrote: > > > > > I think I see why you have avoided this for so > > > long... it is hard to > > > know exactly what the user is going to want > without > > > resorting to the > > > verbose hibernate style dtd. I am trying to > avoid > > > changing the DTD at > > > all costs and trying to use the api as it exists > to > > > achieve the > > > results we are looking for. The main problem I > > > continue to run into is > > > that of id generation and other things of that > > > nature (filling in > > > details of a linking table that don't > neccessarily > > > have anything to do > > > with the links). > > > > > > Forgetting about the linking table details I > would > > > like to throw a > > > theory out there. Please tell me if this holds > > > water. > > > > > > > > > > > > If there are entity ref's to multiple tables, > the > > > host table can be > > > thought of as a many to many linking table of > some > > > kind. > > > > > > IE groupmembers has two entity ref's, one to > groups, > > > one to users. > > > This means jaxor should generate a > > > newInstances(group, userList) and a > > > newInstances(user, groupList) method in the > Finder. > > > This is the easy > > > case. > > > > > > Now, lets look at adding a third entity ref. I > > > couldn't figure out a > > > sensible way to model this with users and groups > so > > > I am gonna go with > > > the structure of XML. Say we wanted to create a > > > generic way to store > > > XML in an RDBMS. We would have tables for > documents, > > > elements and > > > attributes. If this was normalized we would only > > > want one instance for > > > each element and attribute. So if we go all the > way > > > down to the > > > instance of an attribute we would have something > > > like this: > > > > > > <jaxor > > > > package="net.sourceforge.jaxor.example.xml.jaxor"> > > > <entity name="attribute_instance" > > > alias="AttributeInstance" > > > > <primary-key> > > > <column name="attribute_instance_id" > > > type="Long"/> > > > </primary-key> > > > <column name="element_instance_id" > > > type="Long"/> > > > <column name="attribute_id" > type="Long"/> > > > <column name="document_id" type="Long"/> > > > > > > <entity-ref table="element_instance"> > > > <key source="element_instance_id" > > > target="element_instance_id"/> > > > </entity-ref> > > > <entity-ref table="attribute"> > > > <key source="attribute_id" > > > target="attribute_id"/> > > > </entity-ref> > > > <entity-ref table="document"> > > > <key source="document_id" > > > target="document_id"/> > > > </entity-ref> > > > > > > </entity> > > > </jaxor> > > > > > > The attribute instance points to a singular > element > > > instance, which in > > > turns points to a concrete element. The > attribute > > > instance also points > > > to a concrete attribute and document. > > > > > > In this case, we would want jaxor to generate a > > > bunch of > > > newInstances() methods.... We are only going to > > > want three: > > > > > > newInstances(document, attribute, > > > elementInstanceList) > > > newInstances(document, attributeList, > > > elementInstance) > > > newInstances(documentList, attribute, > > > elementInstance) > > > > > > I don't think it really makes sense to pass in > more > > > than one List. > > > > > > Of course it is completely plausible to have a > List > > > of groups and a > > > List of users and you want to put all of the > users > > > into all of the > > > groups, but does that hold true when you have > more > > > than two > > > references? > > > > > > newInstances(documentList, attribute, > > > elementInstance) > > > newInstances(document, attributeList, > > > elementInstance) > > > newInstances(document, attribute, > > > elementInstanceList) > > > > > > newInstances(document, attributeList, > > > elementInstanceList) > > > newInstances(documentList, attribute, > > > elementInstanceList) > > > > > > newInstances(documentList, attributeList, > > > elementInstance) > > > > > > newInstances(documentList, attributeList, > > > elementInstanceList) > === message truncated === __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail |
From: Carl F. <car...@gm...> - 2004-08-24 04:34:47
|
Exciting news. I have the core functionality working. I have bumped into a small conflict where one to many and many to many don't play nicely together. After I figure out the semantics and fix the isForeignKey() method that I introduced for the one to many, we will be in business. I expect to commit this week. It was a good weekend! Hope yours was as good as mine. Carl On Tue, 17 Aug 2004 21:33:33 -0700 (PDT), Michael Rettig <mik...@ya...> wrote: > Yes, it can be complicated. I guess I haven't > implemented anything b/c I haven't run across > situations where it was difficult to manage manually. > The code to manually update fields is trivial. Though > transparency has benefits too. Don't worry about > changing the DTD. Just change it so the new element or > attribute is not required and defaults to the current > implementation. I think adding an element or attribute > is the only way that this will ever work correctly. It > cannot always be automatic. There are always > exceptions. Certainly, we need an attribute to turn > off automatic relationship management. > > Your example seems sensible, but would make more sense > to me with some unit tests. Do you have a use case > from an app you are currently writing? I usually > create a unit test that satisfies the requirements of > an app I'm working on in the simplest manner possible. > Then change the code to meet those requirements. > > Regards, > > Mike > > > > --- Carl Fyffe <car...@gm...> wrote: > > > I think I see why you have avoided this for so > > long... it is hard to > > know exactly what the user is going to want without > > resorting to the > > verbose hibernate style dtd. I am trying to avoid > > changing the DTD at > > all costs and trying to use the api as it exists to > > achieve the > > results we are looking for. The main problem I > > continue to run into is > > that of id generation and other things of that > > nature (filling in > > details of a linking table that don't neccessarily > > have anything to do > > with the links). > > > > Forgetting about the linking table details I would > > like to throw a > > theory out there. Please tell me if this holds > > water. > > > > > > > > If there are entity ref's to multiple tables, the > > host table can be > > thought of as a many to many linking table of some > > kind. > > > > IE groupmembers has two entity ref's, one to groups, > > one to users. > > This means jaxor should generate a > > newInstances(group, userList) and a > > newInstances(user, groupList) method in the Finder. > > This is the easy > > case. > > > > Now, lets look at adding a third entity ref. I > > couldn't figure out a > > sensible way to model this with users and groups so > > I am gonna go with > > the structure of XML. Say we wanted to create a > > generic way to store > > XML in an RDBMS. We would have tables for documents, > > elements and > > attributes. If this was normalized we would only > > want one instance for > > each element and attribute. So if we go all the way > > down to the > > instance of an attribute we would have something > > like this: > > > > <jaxor > > package="net.sourceforge.jaxor.example.xml.jaxor"> > > <entity name="attribute_instance" > > alias="AttributeInstance" > > > <primary-key> > > <column name="attribute_instance_id" > > type="Long"/> > > </primary-key> > > <column name="element_instance_id" > > type="Long"/> > > <column name="attribute_id" type="Long"/> > > <column name="document_id" type="Long"/> > > > > <entity-ref table="element_instance"> > > <key source="element_instance_id" > > target="element_instance_id"/> > > </entity-ref> > > <entity-ref table="attribute"> > > <key source="attribute_id" > > target="attribute_id"/> > > </entity-ref> > > <entity-ref table="document"> > > <key source="document_id" > > target="document_id"/> > > </entity-ref> > > > > </entity> > > </jaxor> > > > > The attribute instance points to a singular element > > instance, which in > > turns points to a concrete element. The attribute > > instance also points > > to a concrete attribute and document. > > > > In this case, we would want jaxor to generate a > > bunch of > > newInstances() methods.... We are only going to > > want three: > > > > newInstances(document, attribute, > > elementInstanceList) > > newInstances(document, attributeList, > > elementInstance) > > newInstances(documentList, attribute, > > elementInstance) > > > > I don't think it really makes sense to pass in more > > than one List. > > > > Of course it is completely plausible to have a List > > of groups and a > > List of users and you want to put all of the users > > into all of the > > groups, but does that hold true when you have more > > than two > > references? > > > > newInstances(documentList, attribute, > > elementInstance) > > newInstances(document, attributeList, > > elementInstance) > > newInstances(document, attribute, > > elementInstanceList) > > > > newInstances(document, attributeList, > > elementInstanceList) > > newInstances(documentList, attribute, > > elementInstanceList) > > > > newInstances(documentList, attributeList, > > elementInstance) > > > > newInstances(documentList, attributeList, > > elementInstanceList) > > > > The matrix only grows if we add another entity ref. > > Not to mention we > > still don't have a way to fill in the id's of all of > > the rows that > > will be created... > > > > Does this make sense, and should I move forward with > > this strategy? > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - 50x more storage than other providers! > http://promotions.yahoo.com/new_mail > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > > > _______________________________________________ > Jaxor-devel mailing list > Jax...@li... > https://lists.sourceforge.net/lists/listinfo/jaxor-devel > |
From: Michael R. <mik...@ya...> - 2004-08-18 04:33:40
|
Yes, it can be complicated. I guess I haven't implemented anything b/c I haven't run across situations where it was difficult to manage manually. The code to manually update fields is trivial. Though transparency has benefits too. Don't worry about changing the DTD. Just change it so the new element or attribute is not required and defaults to the current implementation. I think adding an element or attribute is the only way that this will ever work correctly. It cannot always be automatic. There are always exceptions. Certainly, we need an attribute to turn off automatic relationship management. Your example seems sensible, but would make more sense to me with some unit tests. Do you have a use case from an app you are currently writing? I usually create a unit test that satisfies the requirements of an app I'm working on in the simplest manner possible. Then change the code to meet those requirements. Regards, Mike --- Carl Fyffe <car...@gm...> wrote: > I think I see why you have avoided this for so > long... it is hard to > know exactly what the user is going to want without > resorting to the > verbose hibernate style dtd. I am trying to avoid > changing the DTD at > all costs and trying to use the api as it exists to > achieve the > results we are looking for. The main problem I > continue to run into is > that of id generation and other things of that > nature (filling in > details of a linking table that don't neccessarily > have anything to do > with the links). > > Forgetting about the linking table details I would > like to throw a > theory out there. Please tell me if this holds > water. > > > > If there are entity ref's to multiple tables, the > host table can be > thought of as a many to many linking table of some > kind. > > IE groupmembers has two entity ref's, one to groups, > one to users. > This means jaxor should generate a > newInstances(group, userList) and a > newInstances(user, groupList) method in the Finder. > This is the easy > case. > > Now, lets look at adding a third entity ref. I > couldn't figure out a > sensible way to model this with users and groups so > I am gonna go with > the structure of XML. Say we wanted to create a > generic way to store > XML in an RDBMS. We would have tables for documents, > elements and > attributes. If this was normalized we would only > want one instance for > each element and attribute. So if we go all the way > down to the > instance of an attribute we would have something > like this: > > <jaxor > package="net.sourceforge.jaxor.example.xml.jaxor"> > <entity name="attribute_instance" > alias="AttributeInstance" > > <primary-key> > <column name="attribute_instance_id" > type="Long"/> > </primary-key> > <column name="element_instance_id" > type="Long"/> > <column name="attribute_id" type="Long"/> > <column name="document_id" type="Long"/> > > <entity-ref table="element_instance"> > <key source="element_instance_id" > target="element_instance_id"/> > </entity-ref> > <entity-ref table="attribute"> > <key source="attribute_id" > target="attribute_id"/> > </entity-ref> > <entity-ref table="document"> > <key source="document_id" > target="document_id"/> > </entity-ref> > > </entity> > </jaxor> > > The attribute instance points to a singular element > instance, which in > turns points to a concrete element. The attribute > instance also points > to a concrete attribute and document. > > In this case, we would want jaxor to generate a > bunch of > newInstances() methods.... We are only going to > want three: > > newInstances(document, attribute, > elementInstanceList) > newInstances(document, attributeList, > elementInstance) > newInstances(documentList, attribute, > elementInstance) > > I don't think it really makes sense to pass in more > than one List. > > Of course it is completely plausible to have a List > of groups and a > List of users and you want to put all of the users > into all of the > groups, but does that hold true when you have more > than two > references? > > newInstances(documentList, attribute, > elementInstance) > newInstances(document, attributeList, > elementInstance) > newInstances(document, attribute, > elementInstanceList) > > newInstances(document, attributeList, > elementInstanceList) > newInstances(documentList, attribute, > elementInstanceList) > > newInstances(documentList, attributeList, > elementInstance) > > newInstances(documentList, attributeList, > elementInstanceList) > > The matrix only grows if we add another entity ref. > Not to mention we > still don't have a way to fill in the id's of all of > the rows that > will be created... > > Does this make sense, and should I move forward with > this strategy? > __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail |
From: Carl F. <car...@gm...> - 2004-08-17 04:17:41
|
I think I see why you have avoided this for so long... it is hard to know exactly what the user is going to want without resorting to the verbose hibernate style dtd. I am trying to avoid changing the DTD at all costs and trying to use the api as it exists to achieve the results we are looking for. The main problem I continue to run into is that of id generation and other things of that nature (filling in details of a linking table that don't neccessarily have anything to do with the links). Forgetting about the linking table details I would like to throw a theory out there. Please tell me if this holds water. If there are entity ref's to multiple tables, the host table can be thought of as a many to many linking table of some kind. IE groupmembers has two entity ref's, one to groups, one to users. This means jaxor should generate a newInstances(group, userList) and a newInstances(user, groupList) method in the Finder. This is the easy case. Now, lets look at adding a third entity ref. I couldn't figure out a sensible way to model this with users and groups so I am gonna go with the structure of XML. Say we wanted to create a generic way to store XML in an RDBMS. We would have tables for documents, elements and attributes. If this was normalized we would only want one instance for each element and attribute. So if we go all the way down to the instance of an attribute we would have something like this: <jaxor package="net.sourceforge.jaxor.example.xml.jaxor"> <entity name="attribute_instance" alias="AttributeInstance" > <primary-key> <column name="attribute_instance_id" type="Long"/> </primary-key> <column name="element_instance_id" type="Long"/> <column name="attribute_id" type="Long"/> <column name="document_id" type="Long"/> <entity-ref table="element_instance"> <key source="element_instance_id" target="element_instance_id"/> </entity-ref> <entity-ref table="attribute"> <key source="attribute_id" target="attribute_id"/> </entity-ref> <entity-ref table="document"> <key source="document_id" target="document_id"/> </entity-ref> </entity> </jaxor> The attribute instance points to a singular element instance, which in turns points to a concrete element. The attribute instance also points to a concrete attribute and document. In this case, we would want jaxor to generate a bunch of newInstances() methods.... We are only going to want three: newInstances(document, attribute, elementInstanceList) newInstances(document, attributeList, elementInstance) newInstances(documentList, attribute, elementInstance) I don't think it really makes sense to pass in more than one List. Of course it is completely plausible to have a List of groups and a List of users and you want to put all of the users into all of the groups, but does that hold true when you have more than two references? newInstances(documentList, attribute, elementInstance) newInstances(document, attributeList, elementInstance) newInstances(document, attribute, elementInstanceList) newInstances(document, attributeList, elementInstanceList) newInstances(documentList, attribute, elementInstanceList) newInstances(documentList, attributeList, elementInstance) newInstances(documentList, attributeList, elementInstanceList) The matrix only grows if we add another entity ref. Not to mention we still don't have a way to fill in the id's of all of the rows that will be created... Does this make sense, and should I move forward with this strategy? |
From: Carl F. <car...@gm...> - 2004-08-14 18:33:41
|
Checked in the changes that fix changing a list. I am still unsure of the other test's viablity because it is changing a primary key which has cascading issues. Is the goal to have this change perculate through the rest of the lists as well? I can not figure out the use case for changing a primary key... On Wed, 11 Aug 2004 19:29:30 -0700 (PDT), Michael Rettig <mik...@ya...> wrote: > I think the only way to go is to create a wrapper for > the List interface. Use a Decorator to override the > add,addAll, remove, and iterator methods. > > That is the only idea I have. Any alternative ideas? > > Regards, > > Mike > > --- Carl Fyffe <car...@gm...> wrote: > > > I am kinda stuck. I thought about creating a > > wrapper for ArrayList > > but that seemed... smelly. I really want to go the > > ListChangeListener > > route but am a bit stuck on the how... Any pointers > > on what to look at > > to get an idea of how to do this? > > > > On Mon, 9 Aug 2004 08:26:24 -0700 (PDT), Michael > > Rettig > > <mik...@ya...> wrote: > > > This seems like a sensible approach. Though, I > > don't > > > think it should need to implement EntityInterface. > > If > > > it does, then that really smells. > > > > > > You may want to create a new listener interface > > for a > > > list (i.e. ListChangeListener) to listen for > > additions > > > and removals. This would allow you to set/unset > > the > > > keys properly. > > > > > > Mike > > > > > > --- Carl Fyffe <car...@gm...> wrote: > > > > > > > Is the answer to have EntityListAdapterBase > > > > implement ValueChangeListener? > > > > > > > > I am afraid that if that is the answer, then it > > will > > > > also have to > > > > implement EntityInterface. Is that the case? > > > > > > > > On Mon, 9 Aug 2004 01:24:43 -0400, Carl Fyffe > > > > <car...@gm...> wrote: > > > > > How do I watch the List to see if it changes? > > > > That seems to be what > > > > > needs to be done to fix > > > > testAddingAnEntityToAListAlreadySetOnEntity() > > > > > I keep thinking that a change to List.vm may > > fix > > > > the problem, but I > > > > > haven't figured out how. I took a swing and > > seem > > > > to have struck out. > > > > > Any pointers for my next time at bat? > > > > > > > > > > > > > > > > > > > > On Sun, 8 Aug 2004 12:14:11 -0400, Carl Fyffe > > > > <car...@gm...> wrote: > > > > > > Thank you! I will get right on them. I also > > have > > > > some news on the ManyToMany. > > > > > > > > > > > > ManyToMany does not work anything like > > > > OneToMany. Yes at the heart it > > > > > > is just two OneToMany's pointing in > > different > > > > directions, but they > > > > > > point in the wrong directions. > > > > > > > > > > > > This is REALLY what I want to have work: > > > > > > group.setUserList(members); > > > > > > > > > > > > But that means that UserList will have to > > know > > > > about GroupMember and I > > > > > > don't see anyway to make that happen without > > > > making a change to the > > > > > > DTD and thus the generated .java files. I am > > > > trying to avoid that if > > > > > > possible. > > > > > > > > > > > > Next, I tried this: > > > > > > GroupMemberEntity gme = new > > GroupMemberBase(); > > > > > > gme.setGroupEntity(group); > > > > > > gme.setUserList(members); > > > > > > > > > > > > But like I said earlier, the OneToMany's > > point > > > > in the wrong direction. > > > > > > User's don't have one GroupMember, they have > > > > lots. So if you have a > > > > > > user and you want to set a list of > > GroupMembers, > > > > that works, but we > > > > > > have a list of Users. This is the other > > thought > > > > that I have had: > > > > > > > > > > > > group.setUserList(members, > > > > GroupMemberEntity.class); > > > > > > > > > > > > Pass in some reference that would allow the > > > > setter to know what to > > > > > > link with. Again that would require a change > > in > > > > the DTD and I think > > > > > > the other way is cleaner so I would prefer > > to go > > > > with the other idea > > > > > > if I have to change the DTD. > > > > > > > > > > > > Can you give me a hint at which would be a > > > > better "interface" for the developer? > > > > > > > > > > > > I will start working on your tests and > > continue > > > > thinking about the above. > > > > > > > > > > > > On Sat, 7 Aug 2004 19:34:30 -0700 (PDT), > > Michael > > > > Rettig > > > > > > > > > > > > > > > > > > <mik...@ya...> wrote: > > > > > > > Carl, > > > > > > > > > > > > > > That was quick. I added a couple new > > failing > > > > tests. If > > > > > > > we have a list that is already set on on > > > > entity, > > > > > > > then we need to set the foreign fields for > > > > each entity > > > > > > > that is added to the list. Also, if we > > change > > > > the > > > > > > > value of the key on the source entity, > > then we > > > > need to > > > > > > > update the keys on the list entities. > > > > > > > > > > > > > > I checked in the tests. Do you want to > > take a > > > > stab at > > > > > > > them? > > > > > > > > > > > > > > --- Carl Fyffe <car...@gm...> > > wrote: > > > > > > > > > > > > > > > I have checked the code in for > > OneToMany. > > > > There are > > > > > > > > two issues that I > > > > > > > > am unhappy about. First, you must have > > an > > > > > > > > <entity-ref> in the .jaxor > > > > > > > > of the foreign object (see email.jaxor) > > and > > > > for > > > > > > > > setXXXXXList(list) to > > > > > > > > work. It throws a > > SQLValidationException > > > > and tells > > > > > > > > you that the > > > > > > > > column was expected to have a value, but > > for > > > > some > > > > > > > > reason this doesn't > > > > > > > > "smell" good. > > > > > > > > > > > > > > > > Second, I have added this method to > > > > > > > > ForeignFieldLazyLoader: > > > > > > > > > > > > > > > > private boolean > > isForeignKey(EntityRow > > > > > > > > targetEntity) { > > > > > > > > for(Iterator iterator = > > > > > > > > > > targetEntity.getForeignFields().iterator(); > > > > > > > > iterator.hasNext();) { > > > > > > > > ForeignFieldLazyLoader > > loader = > > > > > > > > (ForeignFieldLazyLoader) > > > > > > > > iterator.next(); > > > > > > > > if > > > > (loader.getResolver().isUnique()) > > > > > > > > return true; > > > > > > > > } > > > > > > > > return false; > > > > > > > > } > > > > > > > > > > > > > > > > The idea is to find out if the > > targetEntity > > > > is > > > > > > > > related to the > > > > > > > > sourceEntity. I have tested against > > > > ManyToManyTest > > > > > > > > and against my new > > > > > > > > OneToManyTest and all lights are green. > > > > This method > > > > > > > > works, and I > > > > > > > > don't know why. I was expecting to need > > to > > > === message truncated === > > __________________________________ > Do you Yahoo!? > Yahoo! Mail is new and improved - Check it out! > > > http://promotions.yahoo.com/new_mail > |
From: Michael R. <mik...@ya...> - 2004-08-12 02:29:43
|
I think the only way to go is to create a wrapper for the List interface. Use a Decorator to override the add,addAll, remove, and iterator methods. That is the only idea I have. Any alternative ideas? Regards, Mike --- Carl Fyffe <car...@gm...> wrote: > I am kinda stuck. I thought about creating a > wrapper for ArrayList > but that seemed... smelly. I really want to go the > ListChangeListener > route but am a bit stuck on the how... Any pointers > on what to look at > to get an idea of how to do this? > > On Mon, 9 Aug 2004 08:26:24 -0700 (PDT), Michael > Rettig > <mik...@ya...> wrote: > > This seems like a sensible approach. Though, I > don't > > think it should need to implement EntityInterface. > If > > it does, then that really smells. > > > > You may want to create a new listener interface > for a > > list (i.e. ListChangeListener) to listen for > additions > > and removals. This would allow you to set/unset > the > > keys properly. > > > > Mike > > > > --- Carl Fyffe <car...@gm...> wrote: > > > > > Is the answer to have EntityListAdapterBase > > > implement ValueChangeListener? > > > > > > I am afraid that if that is the answer, then it > will > > > also have to > > > implement EntityInterface. Is that the case? > > > > > > On Mon, 9 Aug 2004 01:24:43 -0400, Carl Fyffe > > > <car...@gm...> wrote: > > > > How do I watch the List to see if it changes? > > > That seems to be what > > > > needs to be done to fix > > > testAddingAnEntityToAListAlreadySetOnEntity() > > > > I keep thinking that a change to List.vm may > fix > > > the problem, but I > > > > haven't figured out how. I took a swing and > seem > > > to have struck out. > > > > Any pointers for my next time at bat? > > > > > > > > > > > > > > > > On Sun, 8 Aug 2004 12:14:11 -0400, Carl Fyffe > > > <car...@gm...> wrote: > > > > > Thank you! I will get right on them. I also > have > > > some news on the ManyToMany. > > > > > > > > > > ManyToMany does not work anything like > > > OneToMany. Yes at the heart it > > > > > is just two OneToMany's pointing in > different > > > directions, but they > > > > > point in the wrong directions. > > > > > > > > > > This is REALLY what I want to have work: > > > > > group.setUserList(members); > > > > > > > > > > But that means that UserList will have to > know > > > about GroupMember and I > > > > > don't see anyway to make that happen without > > > making a change to the > > > > > DTD and thus the generated .java files. I am > > > trying to avoid that if > > > > > possible. > > > > > > > > > > Next, I tried this: > > > > > GroupMemberEntity gme = new > GroupMemberBase(); > > > > > gme.setGroupEntity(group); > > > > > gme.setUserList(members); > > > > > > > > > > But like I said earlier, the OneToMany's > point > > > in the wrong direction. > > > > > User's don't have one GroupMember, they have > > > lots. So if you have a > > > > > user and you want to set a list of > GroupMembers, > > > that works, but we > > > > > have a list of Users. This is the other > thought > > > that I have had: > > > > > > > > > > group.setUserList(members, > > > GroupMemberEntity.class); > > > > > > > > > > Pass in some reference that would allow the > > > setter to know what to > > > > > link with. Again that would require a change > in > > > the DTD and I think > > > > > the other way is cleaner so I would prefer > to go > > > with the other idea > > > > > if I have to change the DTD. > > > > > > > > > > Can you give me a hint at which would be a > > > better "interface" for the developer? > > > > > > > > > > I will start working on your tests and > continue > > > thinking about the above. > > > > > > > > > > On Sat, 7 Aug 2004 19:34:30 -0700 (PDT), > Michael > > > Rettig > > > > > > > > > > > > > > > <mik...@ya...> wrote: > > > > > > Carl, > > > > > > > > > > > > That was quick. I added a couple new > failing > > > tests. If > > > > > > we have a list that is already set on on > > > entity, > > > > > > then we need to set the foreign fields for > > > each entity > > > > > > that is added to the list. Also, if we > change > > > the > > > > > > value of the key on the source entity, > then we > > > need to > > > > > > update the keys on the list entities. > > > > > > > > > > > > I checked in the tests. Do you want to > take a > > > stab at > > > > > > them? > > > > > > > > > > > > --- Carl Fyffe <car...@gm...> > wrote: > > > > > > > > > > > > > I have checked the code in for > OneToMany. > > > There are > > > > > > > two issues that I > > > > > > > am unhappy about. First, you must have > an > > > > > > > <entity-ref> in the .jaxor > > > > > > > of the foreign object (see email.jaxor) > and > > > for > > > > > > > setXXXXXList(list) to > > > > > > > work. It throws a > SQLValidationException > > > and tells > > > > > > > you that the > > > > > > > column was expected to have a value, but > for > > > some > > > > > > > reason this doesn't > > > > > > > "smell" good. > > > > > > > > > > > > > > Second, I have added this method to > > > > > > > ForeignFieldLazyLoader: > > > > > > > > > > > > > > private boolean > isForeignKey(EntityRow > > > > > > > targetEntity) { > > > > > > > for(Iterator iterator = > > > > > > > > targetEntity.getForeignFields().iterator(); > > > > > > > iterator.hasNext();) { > > > > > > > ForeignFieldLazyLoader > loader = > > > > > > > (ForeignFieldLazyLoader) > > > > > > > iterator.next(); > > > > > > > if > > > (loader.getResolver().isUnique()) > > > > > > > return true; > > > > > > > } > > > > > > > return false; > > > > > > > } > > > > > > > > > > > > > > The idea is to find out if the > targetEntity > > > is > > > > > > > related to the > > > > > > > sourceEntity. I have tested against > > > ManyToManyTest > > > > > > > and against my new > > > > > > > OneToManyTest and all lights are green. > > > This method > > > > > > > works, and I > > > > > > > don't know why. I was expecting to need > to > === message truncated === __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail |
From: Carl F. <car...@gm...> - 2004-08-10 19:54:15
|
I am kinda stuck. I thought about creating a wrapper for ArrayList but that seemed... smelly. I really want to go the ListChangeListener route but am a bit stuck on the how... Any pointers on what to look at to get an idea of how to do this? On Mon, 9 Aug 2004 08:26:24 -0700 (PDT), Michael Rettig <mik...@ya...> wrote: > This seems like a sensible approach. Though, I don't > think it should need to implement EntityInterface. If > it does, then that really smells. > > You may want to create a new listener interface for a > list (i.e. ListChangeListener) to listen for additions > and removals. This would allow you to set/unset the > keys properly. > > Mike > > --- Carl Fyffe <car...@gm...> wrote: > > > Is the answer to have EntityListAdapterBase > > implement ValueChangeListener? > > > > I am afraid that if that is the answer, then it will > > also have to > > implement EntityInterface. Is that the case? > > > > On Mon, 9 Aug 2004 01:24:43 -0400, Carl Fyffe > > <car...@gm...> wrote: > > > How do I watch the List to see if it changes? > > That seems to be what > > > needs to be done to fix > > testAddingAnEntityToAListAlreadySetOnEntity() > > > I keep thinking that a change to List.vm may fix > > the problem, but I > > > haven't figured out how. I took a swing and seem > > to have struck out. > > > Any pointers for my next time at bat? > > > > > > > > > > > > On Sun, 8 Aug 2004 12:14:11 -0400, Carl Fyffe > > <car...@gm...> wrote: > > > > Thank you! I will get right on them. I also have > > some news on the ManyToMany. > > > > > > > > ManyToMany does not work anything like > > OneToMany. Yes at the heart it > > > > is just two OneToMany's pointing in different > > directions, but they > > > > point in the wrong directions. > > > > > > > > This is REALLY what I want to have work: > > > > group.setUserList(members); > > > > > > > > But that means that UserList will have to know > > about GroupMember and I > > > > don't see anyway to make that happen without > > making a change to the > > > > DTD and thus the generated .java files. I am > > trying to avoid that if > > > > possible. > > > > > > > > Next, I tried this: > > > > GroupMemberEntity gme = new GroupMemberBase(); > > > > gme.setGroupEntity(group); > > > > gme.setUserList(members); > > > > > > > > But like I said earlier, the OneToMany's point > > in the wrong direction. > > > > User's don't have one GroupMember, they have > > lots. So if you have a > > > > user and you want to set a list of GroupMembers, > > that works, but we > > > > have a list of Users. This is the other thought > > that I have had: > > > > > > > > group.setUserList(members, > > GroupMemberEntity.class); > > > > > > > > Pass in some reference that would allow the > > setter to know what to > > > > link with. Again that would require a change in > > the DTD and I think > > > > the other way is cleaner so I would prefer to go > > with the other idea > > > > if I have to change the DTD. > > > > > > > > Can you give me a hint at which would be a > > better "interface" for the developer? > > > > > > > > I will start working on your tests and continue > > thinking about the above. > > > > > > > > On Sat, 7 Aug 2004 19:34:30 -0700 (PDT), Michael > > Rettig > > > > > > > > > > > > <mik...@ya...> wrote: > > > > > Carl, > > > > > > > > > > That was quick. I added a couple new failing > > tests. If > > > > > we have a list that is already set on on > > entity, > > > > > then we need to set the foreign fields for > > each entity > > > > > that is added to the list. Also, if we change > > the > > > > > value of the key on the source entity, then we > > need to > > > > > update the keys on the list entities. > > > > > > > > > > I checked in the tests. Do you want to take a > > stab at > > > > > them? > > > > > > > > > > --- Carl Fyffe <car...@gm...> wrote: > > > > > > > > > > > I have checked the code in for OneToMany. > > There are > > > > > > two issues that I > > > > > > am unhappy about. First, you must have an > > > > > > <entity-ref> in the .jaxor > > > > > > of the foreign object (see email.jaxor) and > > for > > > > > > setXXXXXList(list) to > > > > > > work. It throws a SQLValidationException > > and tells > > > > > > you that the > > > > > > column was expected to have a value, but for > > some > > > > > > reason this doesn't > > > > > > "smell" good. > > > > > > > > > > > > Second, I have added this method to > > > > > > ForeignFieldLazyLoader: > > > > > > > > > > > > private boolean isForeignKey(EntityRow > > > > > > targetEntity) { > > > > > > for(Iterator iterator = > > > > > > targetEntity.getForeignFields().iterator(); > > > > > > iterator.hasNext();) { > > > > > > ForeignFieldLazyLoader loader = > > > > > > (ForeignFieldLazyLoader) > > > > > > iterator.next(); > > > > > > if > > (loader.getResolver().isUnique()) > > > > > > return true; > > > > > > } > > > > > > return false; > > > > > > } > > > > > > > > > > > > The idea is to find out if the targetEntity > > is > > > > > > related to the > > > > > > sourceEntity. I have tested against > > ManyToManyTest > > > > > > and against my new > > > > > > OneToManyTest and all lights are green. > > This method > > > > > > works, and I > > > > > > don't know why. I was expecting to need to > > check > > > > > > directly against the > > > > > > sourceEntity as well, but apparently I > > don't. > > > > > > > > > > > > The concern is that it will set the list for > > the > > > > > > wrong foreign > > > > > > field... I am sorry if this seems un-smart, > > but it > > > > > > seems like magic > > > > > > to me :-) Can anyone come up with a test > > that will > > > > > > cause this method > > > > > > to return true, thus allowing a save to the > > wrong > > > > > > table? > > > > > > > > > > > > On Sat, 7 Aug 2004 14:49:55 -0700 (PDT), > > Michael > > > > > > Rettig > > > > > > <mik...@ya...> wrote: > > > > > > > Carl, > > > > > > > > > > > > > > You should have write permissions. I added > > you to > > > > > > the > > > > > > > project as a developer. > > > > > > > > > > > > > > > > > > > > > > > > > > > > http://sourceforge.net/project/memberlist.php?group_id=59712 > > > > > > > > > > > > > > Did you checkout the project using ssh? > > > > > > > > > > > > > > http://sourceforge.net/cvs/?group_id=59712 > > > > > > > > > > > > > > Mike > > > > > > > > > > > > > > --- Carl Fyffe <car...@gm...> > > wrote: > > > > > > > > > > > > > > > Since a Many to Many is really just a > > One to > > > > > > Many on > > > > > > > > two sides, I > > > > > > > > thought I would solve the One to Many > > problem > > > > > > first. > > > > > > > > That is done. I > > > > > > > > would like to check the code in, but I > > don't > > > > > > have > > > > > > > > write permission in > > > > > > > > the repository. > > > > > > > > > > > > > > > > On Sat, 7 Aug 2004 10:08:14 -0700 (PDT), > > Michael > > > === message truncated === > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > http://promotions.yahoo.com/new_mail > |
From: Michael R. <mik...@ya...> - 2004-08-09 15:26:34
|
This seems like a sensible approach. Though, I don't think it should need to implement EntityInterface. If it does, then that really smells. You may want to create a new listener interface for a list (i.e. ListChangeListener) to listen for additions and removals. This would allow you to set/unset the keys properly. Mike --- Carl Fyffe <car...@gm...> wrote: > Is the answer to have EntityListAdapterBase > implement ValueChangeListener? > > I am afraid that if that is the answer, then it will > also have to > implement EntityInterface. Is that the case? > > On Mon, 9 Aug 2004 01:24:43 -0400, Carl Fyffe > <car...@gm...> wrote: > > How do I watch the List to see if it changes? > That seems to be what > > needs to be done to fix > testAddingAnEntityToAListAlreadySetOnEntity() > > I keep thinking that a change to List.vm may fix > the problem, but I > > haven't figured out how. I took a swing and seem > to have struck out. > > Any pointers for my next time at bat? > > > > > > > > On Sun, 8 Aug 2004 12:14:11 -0400, Carl Fyffe > <car...@gm...> wrote: > > > Thank you! I will get right on them. I also have > some news on the ManyToMany. > > > > > > ManyToMany does not work anything like > OneToMany. Yes at the heart it > > > is just two OneToMany's pointing in different > directions, but they > > > point in the wrong directions. > > > > > > This is REALLY what I want to have work: > > > group.setUserList(members); > > > > > > But that means that UserList will have to know > about GroupMember and I > > > don't see anyway to make that happen without > making a change to the > > > DTD and thus the generated .java files. I am > trying to avoid that if > > > possible. > > > > > > Next, I tried this: > > > GroupMemberEntity gme = new GroupMemberBase(); > > > gme.setGroupEntity(group); > > > gme.setUserList(members); > > > > > > But like I said earlier, the OneToMany's point > in the wrong direction. > > > User's don't have one GroupMember, they have > lots. So if you have a > > > user and you want to set a list of GroupMembers, > that works, but we > > > have a list of Users. This is the other thought > that I have had: > > > > > > group.setUserList(members, > GroupMemberEntity.class); > > > > > > Pass in some reference that would allow the > setter to know what to > > > link with. Again that would require a change in > the DTD and I think > > > the other way is cleaner so I would prefer to go > with the other idea > > > if I have to change the DTD. > > > > > > Can you give me a hint at which would be a > better "interface" for the developer? > > > > > > I will start working on your tests and continue > thinking about the above. > > > > > > On Sat, 7 Aug 2004 19:34:30 -0700 (PDT), Michael > Rettig > > > > > > > > > <mik...@ya...> wrote: > > > > Carl, > > > > > > > > That was quick. I added a couple new failing > tests. If > > > > we have a list that is already set on on > entity, > > > > then we need to set the foreign fields for > each entity > > > > that is added to the list. Also, if we change > the > > > > value of the key on the source entity, then we > need to > > > > update the keys on the list entities. > > > > > > > > I checked in the tests. Do you want to take a > stab at > > > > them? > > > > > > > > --- Carl Fyffe <car...@gm...> wrote: > > > > > > > > > I have checked the code in for OneToMany. > There are > > > > > two issues that I > > > > > am unhappy about. First, you must have an > > > > > <entity-ref> in the .jaxor > > > > > of the foreign object (see email.jaxor) and > for > > > > > setXXXXXList(list) to > > > > > work. It throws a SQLValidationException > and tells > > > > > you that the > > > > > column was expected to have a value, but for > some > > > > > reason this doesn't > > > > > "smell" good. > > > > > > > > > > Second, I have added this method to > > > > > ForeignFieldLazyLoader: > > > > > > > > > > private boolean isForeignKey(EntityRow > > > > > targetEntity) { > > > > > for(Iterator iterator = > > > > > targetEntity.getForeignFields().iterator(); > > > > > iterator.hasNext();) { > > > > > ForeignFieldLazyLoader loader = > > > > > (ForeignFieldLazyLoader) > > > > > iterator.next(); > > > > > if > (loader.getResolver().isUnique()) > > > > > return true; > > > > > } > > > > > return false; > > > > > } > > > > > > > > > > The idea is to find out if the targetEntity > is > > > > > related to the > > > > > sourceEntity. I have tested against > ManyToManyTest > > > > > and against my new > > > > > OneToManyTest and all lights are green. > This method > > > > > works, and I > > > > > don't know why. I was expecting to need to > check > > > > > directly against the > > > > > sourceEntity as well, but apparently I > don't. > > > > > > > > > > The concern is that it will set the list for > the > > > > > wrong foreign > > > > > field... I am sorry if this seems un-smart, > but it > > > > > seems like magic > > > > > to me :-) Can anyone come up with a test > that will > > > > > cause this method > > > > > to return true, thus allowing a save to the > wrong > > > > > table? > > > > > > > > > > On Sat, 7 Aug 2004 14:49:55 -0700 (PDT), > Michael > > > > > Rettig > > > > > <mik...@ya...> wrote: > > > > > > Carl, > > > > > > > > > > > > You should have write permissions. I added > you to > > > > > the > > > > > > project as a developer. > > > > > > > > > > > > > > > > > > > > > > http://sourceforge.net/project/memberlist.php?group_id=59712 > > > > > > > > > > > > Did you checkout the project using ssh? > > > > > > > > > > > > http://sourceforge.net/cvs/?group_id=59712 > > > > > > > > > > > > Mike > > > > > > > > > > > > --- Carl Fyffe <car...@gm...> > wrote: > > > > > > > > > > > > > Since a Many to Many is really just a > One to > > > > > Many on > > > > > > > two sides, I > > > > > > > thought I would solve the One to Many > problem > > > > > first. > > > > > > > That is done. I > > > > > > > would like to check the code in, but I > don't > > > > > have > > > > > > > write permission in > > > > > > > the repository. > > > > > > > > > > > > > > On Sat, 7 Aug 2004 10:08:14 -0700 (PDT), > Michael > === message truncated === __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail |