You can subscribe to this list here.
2002 |
Jan
(2) |
Feb
(157) |
Mar
(111) |
Apr
(61) |
May
(68) |
Jun
(45) |
Jul
(101) |
Aug
(132) |
Sep
(148) |
Oct
(227) |
Nov
(141) |
Dec
(285) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(518) |
Feb
(462) |
Mar
(390) |
Apr
(488) |
May
(321) |
Jun
(336) |
Jul
(268) |
Aug
(374) |
Sep
(211) |
Oct
(246) |
Nov
(239) |
Dec
(173) |
2004 |
Jan
(110) |
Feb
(131) |
Mar
(85) |
Apr
(120) |
May
(82) |
Jun
(101) |
Jul
(54) |
Aug
(65) |
Sep
(94) |
Oct
(51) |
Nov
(56) |
Dec
(168) |
2005 |
Jan
(146) |
Feb
(98) |
Mar
(75) |
Apr
(118) |
May
(85) |
Jun
(75) |
Jul
(44) |
Aug
(94) |
Sep
(70) |
Oct
(84) |
Nov
(115) |
Dec
(52) |
2006 |
Jan
(113) |
Feb
(83) |
Mar
(217) |
Apr
(158) |
May
(219) |
Jun
(218) |
Jul
(189) |
Aug
(39) |
Sep
(3) |
Oct
(7) |
Nov
(4) |
Dec
(2) |
2007 |
Jan
|
Feb
(2) |
Mar
(7) |
Apr
(3) |
May
(3) |
Jun
(8) |
Jul
(1) |
Aug
(1) |
Sep
|
Oct
(4) |
Nov
(7) |
Dec
|
2008 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2009 |
Jan
(6) |
Feb
|
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(1) |
Jul
(10) |
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
(3) |
2010 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Gavin_King/Cirrus%<CI...@ci...> - 2002-07-30 16:48:14
|
>Forum1 get cached then accessed multiple times from the cache, while being >accessed, getThreads() method is used. > >At the end, we got a graph of objects and since the cache share the same >reference to the Forum1, it will cache this graph of object, this could lead >to caching the whole DB over the time... This doesn't occur because objects are cached in a "disassmebled" form and anyway the cache has an expiry algorithm. If you configure caching for Forums but not for Threads in the mapping file, forum data will be cached, but never Thread data. >In a multi threaded environement, multiple threads could get a copy from >the cache of the Forum1 object, how to deal with the concurrency access of >non-synchronized collections ? We never retrieve the *actual* cached data, only a clone of it. ie, pulling data out of the cache involves assembling a new object from the disassembled state. Hope that all makes sense. If it doesn't, go check the code in cirrus.hibernate.impl.ClassPersister that should answer your problems.... peace Gavin |
From: Christian M. <vc...@cl...> - 2002-07-30 16:26:28
|
I am thinking about the cache and i have 2 issues in mind. Let's imagine as an example a forum application, we got Forum, Thread, = Message objects. Forum 1 --> N Thread 1 ----> N Message ( bi directional associations) First issue: Forum1 get cached then accessed multiple times from the cache, while = being accessed, getThreads() method is used. At the end, we got a graph of objects and since the cache share the same = reference to the Forum1, it will cache this graph of object, this could = lead to caching the whole DB over the time... Second issue: In a multi threaded environement, multiple threads could get a copy from = the cache of the Forum1 object, how to deal with the concurrency access = of non-synchronized collections ? Comments anyone ? Best regards Chris |
From: Gavin_King/Cirrus%<CI...@ci...> - 2002-07-30 15:45:20
|
>If I execute this select directly in the db I get 77 results, but >Hibernate returns only 11. Thats *highly* wierd and I don't understand how it could be true.... we need to try and understand this better. Could you try stepping through code to see if the JDBC ResultSet actually contains 77 rows? (Hibernate *does* actually have an extra layer to force distinctness of results which were retrieved from the database *without* SELECT DISTINCT but I don't really see how this could be malfunctioning....) >Another problem is that hibernate uses one more join than it actually >should, (the shops table is accessed two times, and joined with itself >on the primary key :)) Thanks for spotting this. This is an old bug I think. The code wasn't being sufficiently selective in differentiating one-to-many associations from many-to-many. Its now fixed in CVS. Please grab a latest CVS snapshot and try stepping through code for me. (Note that the generated SQL will be different this time.) TIA Gavin |
From: Christoph S. <ch...@mc...> - 2002-07-30 11:57:13
|
Hey all! I have a strange problem: I issue this query in hibernate: String query = "from vtrm in class " + Vtrm.class.getName() + ", shop in vtrm.shops.elements where vtrm.status=5 and shop.shopkz=?"; results = session.find(query, "WAP", Hibernate.STRING); Hibernate issues this select: Hibernate: SELECT DISTINCT vtrm.vtrmid, vtrm.begtag, vtrm.infurl, vtrm.onstat, vtrm.kauter, vtrm.clubnr, vtrm.abldat, vtrm.wvsvor, vtrm.laenge, vtrm.adddte, vtrm.titel2, vtrm.upddte, vtrm.titel1, vtrm.wvspkl, vtrm.preise, vtrm.enduhr, vtrm.addgru, vtrm.updgru, vtrm.inftel, vtrm.listid, vtrm.prliid, vtrm.addusr, vtrm.wv sver, vtrm.updusr, vtrm.minaka, vtrm.beguhr, vtrm.iskind, vtrm.infeml, vtrm.vortid, vtrm.status, vtrm.wvsmnr, vtrm.isclub, vtrm.anzknd, vtrm.ordeml, vtrm.maxaka, vtrm.ntrmid, vtrm.endtag, vtrm.wvssnr, vtrm.wvsmsv, vtrm.stadat, vtrm.vreihe FROM Vtrm vtrm, vtrm_x_shop shop, vtrm_x_shop sho1 WHERE 1=1 and vtrm.vtrmid = sho1.vtrmid and sho1.recnum=shop.recnum AND ( vtrm.status=5 ) and ( shop.shopkz=? ) If I execute this select directly in the db I get 77 results, but Hibernate returns only 11. Another problem is that hibernate uses one more join than it actually should, (the shops table is accessed two times, and joined with itself on the primary key :)) I tried with cvs version and with hibernate 1.01b, both act the same. This is my mapping: <hibernate-mapping> <!-- at.mcg.clubticket.db.Vtrm root --> <class name="at.mcg.clubticket.db.Vtrm" table="Vtrm" select="distinct"> <id name="vtrmid" type="long" column="vtrmid"> <generator class="sequence"/> </id> <!-- basic name="begtag" type="java.lang.Long" --> <property name="begtag" column="begtag" type="long"/> <!-- basic name="infurl" type="java.lang.String" --> <property name="infurl" column="infurl" type="string"/> <!-- basic name="onstat" type="java.lang.Long" --> <property name="onstat" column="onstat" type="long"/> <!-- basic name="kauter" type="java.lang.String" --> <property name="kauter" column="kauter" type="string"/> <!-- basic name="clubnr" type="java.lang.String" --> <property name="clubnr" column="clubnr" type="string"/> <!-- basic name="abldat" type="java.sql.Timestamp" --> <property name="abldat" column="abldat" type="timestamp"/> <!-- basic name="wvsvor" type="java.lang.String" --> <property name="wvsvor" column="wvsvor" type="string"/> <!-- basic name="laenge" type="java.lang.Long" --> <property name="laenge" column="laenge" type="long"/> <!-- basic name="adddte" type="java.sql.Timestamp" --> <property name="adddte" column="adddte" type="timestamp"/> <!-- basic name="titel2" type="java.lang.String" --> <property name="titel2" column="titel2" type="string"/> <!-- basic name="upddte" type="java.sql.Timestamp" --> <property name="upddte" column="upddte" type="timestamp"/> <!-- basic name="titel1" type="java.lang.String" --> <property name="titel1" column="titel1" type="string"/> <!-- basic name="wvspkl" type="java.lang.String" --> <property name="wvspkl" column="wvspkl" type="string"/> <!-- basic name="preise" type="java.lang.String" --> <property name="preise" column="preise" type="string"/> <!-- basic name="enduhr" type="java.lang.Long" --> <property name="enduhr" column="enduhr" type="long"/> <!-- basic name="addgru" type="java.lang.Long" --> <property name="addgru" column="addgru" type="long"/> <!-- basic name="updgru" type="java.lang.Long" --> <property name="updgru" column="updgru" type="long"/> <!-- basic name="inftel" type="java.lang.String" --> <property name="inftel" column="inftel" type="string"/> <!-- basic name="listid" type="java.lang.Long" --> <property name="listid" column="listid" type="long"/> <!-- basic name="prliid" type="java.lang.Long" --> <property name="prliid" column="prliid" type="long"/> <!-- basic name="addusr" type="java.lang.String" --> <property name="addusr" column="addusr" type="string"/> <!-- basic name="wvsver" type="java.lang.String" --> <property name="wvsver" column="wvsver" type="string"/> <!-- basic name="updusr" type="java.lang.String" --> <property name="updusr" column="updusr" type="string"/> <!-- basic name="minaka" type="java.lang.Long" --> <property name="minaka" column="minaka" type="long"/> <!-- basic name="beguhr" type="java.lang.Long" --> <property name="beguhr" column="beguhr" type="long"/> <!-- basic name="iskind" type="java.lang.Long" --> <property name="iskind" column="iskind" type="long"/> <!-- basic name="infeml" type="java.lang.String" --> <property name="infeml" column="infeml" type="string"/> <!-- basic name="vortid" type="java.lang.Long" --> <property name="vortid" column="vortid" type="long"/> <!-- basic name="status" type="java.lang.String" --> <property name="status" column="status" type="string"/> <!-- basic name="wvsmnr" type="java.lang.String" --> <property name="wvsmnr" column="wvsmnr" type="string"/> <!-- basic name="isclub" type="java.lang.Long" --> <property name="isclub" column="isclub" type="long"/> <!-- basic name="anzknd" type="java.lang.Long" --> <property name="anzknd" column="anzknd" type="long"/> <!-- basic name="ordeml" type="java.lang.String" --> <property name="ordeml" column="ordeml" type="string"/> <!-- basic name="maxaka" type="java.lang.Long" --> <property name="maxaka" column="maxaka" type="long"/> <!-- basic name="ntrmid" type="java.lang.Long" --> <property name="ntrmid" column="ntrmid" type="long"/> <!-- basic name="endtag" type="java.lang.Long" --> <property name="endtag" column="endtag" type="long"/> <!-- basic name="wvssnr" type="java.lang.String" --> <property name="wvssnr" column="wvssnr" type="string"/> <!-- basic name="wvsmsv" type="java.lang.String" --> <property name="wvsmsv" column="wvsmsv" type="string"/> <!-- basic name="stadat" type="java.sql.Timestamp" --> <property name="stadat" column="stadat" type="timestamp"/> <!-- basic name="vreihe" type="java.lang.String" --> <property name="vreihe" column="vreihe" type="string"/> <set role="shops" table="vtrm_x_shop" readonly="true" lazy="true"> <key column="vtrmid"/> <one-to-many class="at.mcg.clubticket.db.Vtrm_x_shop"/> </set> </class> <class name="at.mcg.clubticket.db.Vtrm_x_shop" table="vtrm_x_shop" select="distinct"> <id name="recnum" type="long" column="recnum"> <generator class="sequence"/> </id> <!-- basic name="upddte" type="java.sql.Timestamp" --> <property name="upddte" column="upddte" type="timestamp"/> <!-- basic name="shopkz" type="java.lang.String" --> <property name="shopkz" column="shopkz" type="string"/> <!-- basic name="vtrmid" type="java.lang.Long" --> <many-to-one name="vtrm" class="at.mcg.clubticket.db.Vtrm" column="vtrmid" outer-join="true" /> <!-- basic name="status" type="java.lang.String" --> <property name="status" column="status" type="string"/> <!-- basic name="addusr" type="java.lang.String" --> <property name="addusr" column="addusr" type="string"/> <!-- basic name="updusr" type="java.lang.String" --> <property name="updusr" column="updusr" type="string"/> <!-- basic name="addgru" type="java.lang.Long" --> <property name="addgru" column="addgru" type="long"/> <!-- basic name="updgru" type="java.lang.Long" --> <property name="updgru" column="updgru" type="long"/> <!-- basic name="srtpos" type="java.lang.Long" --> <property name="srtpos" column="srtpos" type="long"/> <!-- basic name="adddte" type="java.sql.Timestamp" --> <property name="adddte" column="adddte" type="timestamp"/> </class> </hibernate-mapping> Peace all! chris -- MC Marketing GmbH. IT Services e-mail: cs...@mc... * http://www.mcmarketing.at tel: +4315240140-59 * http://www.clubticket.at fax: +4315240140-50 * http://www.megacard.at mobile:+43664 2353015 * http://www.skatelab.at A-1070 Wien / Kirchengasse 32/1 * http://www.time2bcool.at |
From: Gavin_King/Cirrus%<CI...@ci...> - 2002-07-30 00:16:08
|
>I have a bidirectional 1:n mapping like this, and I have set >use_outer_join to true, but I cant get hibernate to fetch all elements >at once with an outer join. (I'm using a find query) Outerjoins are never used to fetch collection elements. Quite a few people have asked for this but I'm not even convinced its a particularly great thing to do (less trips to the database but more bandwidth usage and presumaby more load on the database). The main reason it isn't implemented is that I really need to redesign the whole way collections are fetched to be able to do it. Originally collection fetching was designed assuming that what you usually wanted was lazy initialization. Outerjoin fetching is a very aggressive *eager* initialization. At the moment outerjoin fetching is used only for <many-to-one> and <one-to-one> associations. And its _not_ used from the first level of a find() query (this is *not* a good thing). Now that I finished most of the stuff that was very high on my TODO list (over the past two weeks or so), I'm happy to move this issue (redesign of the fetching code) up to the top of the list. I'd say its certainly been the weakest area for a while now.... |
From: Christoph S. <cs...@mc...> - 2002-07-29 16:45:51
|
Hi Gavin and all others! I have a bidirectional 1:n mapping like this, and I have set use_outer_join to true, but I cant get hibernate to fetch all elements at once with an outer join. (I'm using a find query) <set role="xxxx" table="xxxx" readonly="true"> <key column="xxx"/> <one-to-many class="xxxx"/> </set> What am I doing wrong? Best regards Chris |
From: Gavin_King/Cirrus%<CI...@ci...> - 2002-07-29 13:23:04
|
>I would vote for this option. In the past, I've had to write a lot of >code that dynamically built JDBC. As the SQL query string was built, >I would collect parameter values in a seperate Collection. I think we already sort of address this by having a generic method public void setParameter(int loc, Object value, Type type); As long as you also collect a list of types, you are fine.... We can't provide a truly generic method because theres too much ambiguity. eg. a java.lang.Long could by Hibernate's "long" type or Hibernate's "serializable" type. A java.util.Date could be "date", "time", timestamp", "serializable" or even, in theory, an entity. I suppose we could provide one which does a best guess ... so it would pick a java.lang.Long as "long" but its still problematic for Date..... P.S. I have finished implementing named query parameters + setFirstResult() and its all in CVS to try out..... |
From: Urberg, J. <ju...@ve...> - 2002-07-29 12:27:01
|
>> I suppose a way to dodge this issue would be to have a single method public void setObject(int position, Object val); which checks if val is an entity, a persistent enum or Serializable and uses whichever Type is appropriate but I would only go this way if people think that would be a better API for other reasons..... (I think its slightly inferior) << I would vote for this option. In the past, I've had to write a lot of code that dynamically built JDBC. As the SQL query string was built, I would collect parameter values in a seperate Collection. When I was about to execute the SQL, I'd just loop thru the Collection and call "setObject" to bind the parameters. I can see doing the same sort of thing with Hibernate's query language and would hate to have to keep track of whether a parameter is an entity or not so I can call the correct binding function. Regards, John Urberg |
From: Christian B. <chr...@bl...> - 2002-07-29 07:46:38
|
On 25 Jul (09:52), Pierer carion wrote: > There is a very interesting tool in Jakarta : > http://jakarta.apache.org/turbine/maven/ > This tool/environment, based on Java, allows you to > perform usual tasks automatically and even > to generate the website : Hm, I had a fist look at Maven and it may be possible to use it for hibernate. I'm not happy with the default directory layout (to simple) and some other things are still not clear. I will try to setup a hibernate project with Maven and report... -- Christian Bauer tu...@in... |
From: Gavin_King/Cirrus%<CI...@ci...> - 2002-07-29 04:10:09
|
Hi everyone, I just committed to CVS an experimental version of the new pageable queries API. Its not quite finished yet, since it doesn't support named query parameters + setFirstResult() is not yet implemented. Also, I had always intended to refactor a bunch of code from RelationalDatabaseSession (now renamed SessionImpl) to QueryImpl but I havn't done that yet, since it wasn't the path of least resistence. I still need to do it at some stage - SessionImpl is an abominably huge class. However, it would be cool if people could check it out and give criticism. A question I have is about the naming of this method on the Query interface public void setEntity(int position, Object val); (Used to bind an entity object to a JDBC parameter.) The word "entity" is used liberally in the documentation, but not in the actual code and never in the API. The method on class Hibernate that gets an entity type is called "association". However "setAssociation" sounds wrong. I suppose a way to dodge this issue would be to have a single method public void setObject(int position, Object val); which checks if val is an entity, a persistent enum or Serializable and uses whichever Type is appropriate but I would only go this way if people think that would be a better API for other reasons..... (I think its slightly inferior) I was never particularly happy with the using the word "entity" for what I call "persistent object" in my head (and in the implementation code, generally). However there *does* need to be a way to distinguish between entity and value objects since both really fit the description "persistent object". The JDO spec calls these things "first class objects" and "second class objects" which is okay, but not really that evocative. Can anyone think of a better name? TIA Gavin oh, PS, is "bindParameter, bindInteger" better than "setParameter, setInteger"? I chose the latter to be consistent with JDBC.... |
From: Gavin_King/Cirrus%<CI...@ci...> - 2002-07-27 01:40:36
|
>Actually you just need to be able to do a scp and >a ssh to your hosting machine. >I don't know if you have such a possibility with >SourceForge. Yeah, Sourceforge allows ssh + scp. |
From: Pierer c. <pie...@ya...> - 2002-07-27 01:18:11
|
Actually you just need to be able to do a scp and a ssh to your hosting machine. I don't know if you have such a possibility with SourceForge. Pierre --- Gavin_King/Cirrus%CI...@ci... wrote: > > Yeah, funnily enough, I've just been noticing maven > at the JCS project. > Unfortunately, I don't have anywhere to host the > project, only > Sourceforge. I presume you need an actual box with > an application > server to run maven. > __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com |
From: Gavin_King/Cirrus%<CI...@ci...> - 2002-07-26 16:43:32
|
<P>>I'm building a 3-tier Java GUI. I'd like to be able to issue queries= using<BR>>Hibernate, disconnect the Session and send it over the wire, = get the queried<BR>>objects out of the cache (and have any of those obje= ct's related objects<BR>>automatically come from the the cache if they'r= e in it), make changes to the<BR>>objects on the client side, send the w= hole session back to the server,<BR>>reconnect the Session to the dataso= urce and flush to apply any updates that<BR>>happened on either side to = the database.<BR><BR>yeah, thats essentially doable at present. All you wou= ld need is to make a<BR>little patch to allow deserialization of the sessio= n in a process where<BR>its SessionFactory is missing. <BR><BR>The main pro= blem for your application would be how to get a reference to <BR>the object= s you need on the client side. If you returned the Session =5Fand=5F<BR>the= needed objects, it would work.<BR><BR>In a disconnected state, I *think* y= ou would be able to call any Session<BR>methods except find(), flush(), loc= k(), loadWithLock() (and load() for a <BR>missing object). Oh, and save() o= f an object using native key generation. <BR>I would need to test this to b= e sure though.<BR><BR>Currently the serialization/deserialization code is w= ritten assuming that<BR>it is used for failover of stateful session bean or= servlet session state<BR>to another server with a SessionFactory of the sa= me name. So you would<BR>need to remove that assumption.<BR><BR>Gavin</P>= |
From: Christian M. <vc...@cl...> - 2002-07-26 15:06:38
|
In the futur, it might be a good idea to be able to get some stats about = caches via the api. The APi could list all regions used by hibernate and for each region = give some basic stats about its usage ( Name of the region / attributes = of the region / effectivness / nbr hit / nbr miss ) Best regards Christian Meunier |
From: Urberg, J. <ju...@ve...> - 2002-07-26 12:47:49
|
>> I've no idea if its serializable, probably not, but that doesn't affect serializability of the Session. This is the factory-level cache using JCS, not the Session's own collection of loaded objects. << Guess I haven't looked very closely at the cacheing stuff yet. I was assuming it was part of the session/ >> Sessions are already serializable when disconnected and may be passed on the wire. What exactly did you have in mind? << I'm building a 3-tier Java GUI. I'd like to be able to issue queries using Hibernate, disconnect the Session and send it over the wire, get the queried objects out of the cache (and have any of those object's related objects automatically come from the the cache if they're in it), make changes to the objects on the client side, send the whole session back to the server, reconnect the Session to the datasource and flush to apply any updates that happened on either side to the database. I didn't think that was possible in Hibernate yet, so I've been using my own simple cache for now. Regards, John |
From: Gavin_King/Cirrus%<CI...@ci...> - 2002-07-26 06:05:03
|
>No app server is required for maven... all content is statically generated >and uploaded using scp (and I think ssh). Ah cool. I misoverstood. >A similar tool is centipede (www.krysalis.org). very cool. If anyone wants to set up maven or centipede scripts for Hibernate, they have my blessing (not enough time to do it myself though). |
From: Eric E. <ev...@pr...> - 2002-07-26 04:37:12
|
> > >Third, I'm a IDE kind of guy (OK, I'm a lite-weight) and I never do > >*anything* using the command line. > >I've been thinking about whats involved in making a real GUI tool for >editing mappings of late. Its not yet near the top of the TODO, but >it might eventually bubble up there. First I would want to learn >Eclipse's windowing toolkit (cos' I just hate Swing). > >Anyway, I was thinking along the lines of: > >1. A window that represents a mapping document visually as a tree and >allows nodes to be edited in a properties pane. >2. Menu items: >(a) generate skeletal mapping from class(es) >(b) generate class(se) from current mapping >(c) generate skeletal mapping from database table(s) >(d) export schema to database >which would all open up dialog boxes (which would, in turn, delegate to >our commandline tools). > >I must confess though, I've never written an actual GUI application >in my life. Only commandline and web applications. So this would be a real >learning experience for me. The one time I had contact with the Swing >TreeView was painful and scared me off for life.... > >In a sense this is really just a generic XML editor though. The only thing >different is that we want to provide some explanatory metadata to nodes and >attributes. (And the added menu-items which are trivial to do.) > >Does anyone know of any XML-editor-frameworks out there ;) hehe. Or >something opensource that I could just take and bend to my own >purposes? Yeah, I had been thinking about this as well. My ideal tool would extend the idea of Hibernate as a service all the way into the build process of the business model. It would include: -Easy to use editor as you describe -Ability to set preferences such as default text field lengths, id field names, collection types, etc and store them in the generated .xml (or in a central file for global settings). -Ability to automate the mapping and schema gen and include it in the business object build process. If there is a previous version of the .xml file, use its values for mappings that haven't changed and use defaults for everything else. -<dream-on>Ability to detect existing tables and generate Alter Table scripts that preserve db data</dream-on> My *ideal* build process would then be: -Implement a business model -Do a rough Hibernate mapping w/ the editor -Tweak the mapping w/ the editor -Modify business model and rebuild project W/O losing mapping tweaks One thing I can see happening in this scheme or any editor that saves state is that the dtd is going to have to make room for some fluff UI tags. I had been using the data binding packages that came with JBuilder (DataExpress and dbSwing) for this type of work, but they seem to be extremely buggy and the source code is not available unless you've got cash to burn. Lately, I've heard of several xml data binding strategies, but I haven't had a chance to check them out. I would certainly be interested in pitching in on something like this - let me know when you would like to take a stab at it. > > there is one hitch: The map gen tool creates a doctype declaration like > > this: > > > ><!DOCTYPE hibernate-mapping SYSTEM "DTD_PATH/hibernate-mapping.dtd"> > >urrrghhh yuck. Theres no good reason to use a SYSTEM ID now anyway. >I will change this ASAP. Great - thanks for the tweak. Cheers, Eric Everman |
From: Glen S. <gs...@ip...> - 2002-07-26 03:34:09
|
No app server is required for maven... all content is statically generated and uploaded using scp (and I think ssh). A similar tool is centipede (www.krysalis.org). Regards, Glen Stampoultzis (TriNexus Pty Ltd) Fixed:+61 3 9753-6850 Mob:+61 (0)402 835 458 ICQ: 62722370 EMail: gl...@ap... URL's: http://jakarta.apache.org/poi, http://www.krysalis.org > > Yeah, funnily enough, I've just been noticing maven at the JCS project. > Unfortunately, I don't have anywhere to host the project, only > Sourceforge. I presume you need an actual box with an application > server to run maven. > > > > ------------------------------------------------------- > This sf.net email is sponsored by: Jabber - The world's fastest growing > real-time communications platform! Don't just IM. Build it in! > http://www.jabber.com/osdn/xim > _______________________________________________ > Hibernate-devel mailing list > Hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > |
From: Gavin_King/Cirrus%<CI...@ci...> - 2002-07-26 03:21:47
|
>Is a JCS cache serializable? If so, how much more would it take to >pass the whole session over the wire? I've no idea if its serializable, probably not, but that doesn't affect serializability of the Session. This is the factory-level cache using JCS, not the Session's own collection of loaded objects. Sessions are already serializable when disconnected and may be passed on the wire. What exactly did you have in mind? (well, they are serializable if the persistent object are serializable...) |
From: Gavin_King/Cirrus%<CI...@ci...> - 2002-07-26 03:17:17
|
Yeah, funnily enough, I've just been noticing maven at the JCS project. Unfortunately, I don't have anywhere to host the project, only Sourceforge. I presume you need an actual box with an application server to run maven. |
From: Gavin_King/Cirrus%<CI...@ci...> - 2002-07-26 03:14:18
|
>First, here is some documentation on the --abstract switch for the mapping thanks, I knew that was missing. >Second, I've noticed that when using JUnit, the 'reload classes for each >test' option throws the logging system into a tail spin that prevents JUnit >from running. Using the JUnit "-noloading" application parameter prevents >class reloading and avoids the problem - maybe this could be included in a >FAQ section or something. hhmmmm....we dont have a real FAQ yet. If someone wants to volunteer to maintain one, that would be very cool. Unfortunately I honestly don't have time to do this myself. >Third, I'm a IDE kind of guy (OK, I'm a lite-weight) and I never do >*anything* using the command line. I've been thinking about whats involved in making a real GUI tool for editing mappings of late. Its not yet near the top of the TODO, but it might eventually bubble up there. First I would want to learn Eclipse's windowing toolkit (cos' I just hate Swing). Anyway, I was thinking along the lines of: 1. A window that represents a mapping document visually as a tree and allows nodes to be edited in a properties pane. 2. Menu items: (a) generate skeletal mapping from class(es) (b) generate class(se) from current mapping (c) generate skeletal mapping from database table(s) (d) export schema to database which would all open up dialog boxes (which would, in turn, delegate to our commandline tools). I must confess though, I've never written an actual GUI application in my life. Only commandline and web applications. So this would be a real learning experience for me. The one time I had contact with the Swing TreeView was painful and scared me off for life.... In a sense this is really just a generic XML editor though. The only thing different is that we want to provide some explanatory metadata to nodes and attributes. (And the added menu-items which are trivial to do.) Does anyone know of any XML-editor-frameworks out there ;) hehe. Or something opensource that I could just take and bend to my own purposes? > there is one hitch: The map gen tool creates a doctype declaration like > this: > ><!DOCTYPE hibernate-mapping SYSTEM "DTD_PATH/hibernate-mapping.dtd"> urrrghhh yuck. Theres no good reason to use a SYSTEM ID now anyway. I will change this ASAP. Thanks Eric |
From: Gavin_King/Cirrus%<CI...@ci...> - 2002-07-26 02:25:34
|
>Found 2 issues with the current cache code: > >one with the <jcs-cache> tag, i edited vertex.hbm.xml to do my testing. >If i place the <jcs-cache> tag just after the <class> one it "works" , no >error while parsing the xml >If i place the <jcs-cache> tag after </subclass> and before </class> , got >an error parsing the xml: This is intended. I decided it was too easy to miss the <cache> tag where it is now. >Other error comes from the fact the class CacheEntry does not implement >Serializable, it's mandatory that class going to the cache are serializable. >quick fix : ClassPersister.java line 1035 Done. Thanks for that. I had been testing against the in-memory cache only. >- I thought the key was a composite one.... ( tableName + PK ), it appears >it's only the PK ( if we want to be able to share a region cache among > multiple classes we need a unique key) Currently the factory-level caches hold instances of just a single class, hence we don't need to use the tablename. If theres a really good reason why we might want to keep all cached data in a single JCS region, we can actually implement that directly in cirrus.hibernate.JCSCache, since it knows the name of the rootclass it is caching. Actually thst such a small amount of work I might just _do_it_.... Is there any really major advantage to keeping everything in one region? >- Then i try to re enter the show command, i would expect to get some "Cache >hit: xxx" debug info , but i get none.Are we sure that Hibernate does check >the cache properly ? yup, I'm quite sure. But show can't utilize the cache because it uses find() queries. The query goes to the database and retrieves the whole object in one step. If you want to see some cache hits try an iterate() query, or something with associations when use_outer_join is disabled. .....or various other situations where the cache *is* used. P.S. We really need to implement caching for collections if we want to use this stuff most efficiently. I don't think theres anything particularly technically difficult about that ... I just need to *do* it. If anyone else wants to volunteer for this, give me a yell and I'll tell you what needs to be done.... |
From: Christian M. <vc...@cl...> - 2002-07-25 17:27:31
|
Found 2 issues with the current cache code: one with the <jcs-cache> tag, i edited vertex.hbm.xml to do my testing. If i place the <jcs-cache> tag just after the <class> one it "works" , no error while parsing the xml If i place the <jcs-cache> tag after </subclass> and before </class> , got an error parsing the xml: Other error comes from the fact the class CacheEntry does not implement Serializable, it's mandatory that class going to the cache are serializable. quick fix : ClassPersister.java line 1035 private final class CacheEntry implements Serializable { Other observations: Got 3 vertex in my app and when i enter the show command, got debug info: 134383 [main] DEBUG cache.ReadOnlyCache - Caching: 0 134383 [main] DEBUG cache.ReadOnlyCache - Caching: 1 134383 [main] DEBUG cache.ReadOnlyCache - Caching: 2 - I thought the key was a composite one.... ( tableName + PK ), it appears it's only the PK ( if we want to be able to share a region cache among multiple classes we need a unique key) - Then i try to re enter the show command, i would expect to get some "Cache hit: xxx" debug info , but i get none.Are we sure that Hibernate does check the cache properly ? best regards Christian Meunier ----- Original Message ----- From: <Gavin_King/Cirrus%CI...@ci...> To: <hib...@li...> Cc: <vc...@cl...> Sent: Thursday, July 25, 2002 5:09 PM Subject: JCS integration > Christian Meunier got me started with some code to integrate Apache > Tubine's JCS today. I ended up rewriting much of the Cache package and > making some big improvements. Anyway, you may now specify a JCS cache in > the mapping file using > > <jcs-cache usage="read-only"/> > > or > > <jcs-cache usage="read-write"/> > > You must then configure the cache in the resource /cache.ccf > > I will deprecate the old homegrown cache soon. > > JCS supports things like in-memory LRU caching, disk-caching, distributed > caching, etc but be careful of using a distributed cache with usage > ="read-write". That probably wont work. > > All in CVS.... > > |
From: Urberg, J. <ju...@ve...> - 2002-07-25 17:19:12
|
Is a JCS cache serializable? If so, how much more would it take to pass the whole session over the wire? Thanks, John -----Original Message----- From: Gavin_King/Cirrus%CI...@ci... [mailto:Gavin_King/Cirrus%CI...@ci...] Sent: Thursday, July 25, 2002 10:09 AM To: hib...@li... Cc: vc...@cl... Subject: [Hibernate-devel] JCS integration Christian Meunier got me started with some code to integrate Apache Tubine's JCS today. I ended up rewriting much of the Cache package and making some big improvements. Anyway, you may now specify a JCS cache in the mapping file using <jcs-cache usage="read-only"/> or <jcs-cache usage="read-write"/> You must then configure the cache in the resource /cache.ccf I will deprecate the old homegrown cache soon. JCS supports things like in-memory LRU caching, disk-caching, distributed caching, etc but be careful of using a distributed cache with usage ="read-write". That probably wont work. All in CVS.... ------------------------------------------------------- This sf.net email is sponsored by: Jabber - The world's fastest growing real-time communications platform! Don't just IM. Build it in! http://www.jabber.com/osdn/xim _______________________________________________ Hibernate-devel mailing list Hib...@li... https://lists.sourceforge.net/lists/listinfo/hibernate-devel |
From: Pierer c. <pie...@ya...> - 2002-07-25 16:52:20
|
There is a very interesting tool in Jakarta : http://jakarta.apache.org/turbine/maven/ This tool/environment, based on Java, allows you to perform usual tasks automatically and even to generate the website : As an example of project using marven, you can have a look at : http://jaxen.org/ Pierre > I would very much prefer Ant if its at all possible. > I've finally > started using the ant build script to generate > javadoc, etc, So > it would be really nice to integrate this stuff with > the existing > stuff. My dream is to eventually be able to do a > whole release > with just a single Ant task but I'm not there yet ;) __________________________________________________ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com |