Re: [Hibernate] dynamic update property is not working.

2006-08-03 Thread Max Rydahl Andersen

user questions should be asked on the user forum for forum.hibernate.org

/max

>
> i am using Dynamic-update property in the mapping file of hibernate so  
> that
> only the required columns are updated, but when i look at the log, all  
> the
> columns are being updated, where as only the modifed should have been
> updated as per meant by the use of Dynamic-update property. Can any one  
> tell
> me why the Dynamic -update property is not working. Any help would be
> appreciated.
>
> This is the Mapping file.
>
>  Mapping File
> 
> 
>  "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
> "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd";>
>
> 
>  name="dao.Person"
>   dynamic-insert="true"
>   dynamic-update="true"
>   table="HIBERNATE_TEST">
>   
>   
>   
>   
>   
>   
>
> 
> 
> 
> 
>  
> 
>
> --
>
>



-- 
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] Hiber dynamic module

2006-08-03 Thread Darryl Miles
Peter M.Chen wrote:
> a real business project often contains 100 or more persistent class,
> now hibernate startup is very slow, normally spent 30 or more seconds.
>  
> So I write a module to speed up it,
> only cache the config file path(.hbm.xml) of the persistent class,
> read  and parse the file content until program using the persistent class.
>  
> http://sourceforge.net/projects/hbn-dyn-mod/

I'm interested in speeding things up.  Maybe you would be so kind as to 
post a brief summary here and on the sourceforge site explaining what it 
does and how it works.

Things I have tried to varying degrees of success:

* Buy faster hardware :)

* Make use of cachable hbm.xml files in projects that have the hbm.xml 
file in the WEB-INF/classes directory, but sometime this is not possible 
as hbm.xml are inside JARs.

* Make web-app ServletContextListener.contextInitialized() create a 
background thread which creates the SessionFactory and once ready it 
calls a notify callback chain to kickstart Session users.

* Use a separate web-app to build and keep the SessionFactory, so that 
the web-app you are developing can be reloaded independently.  This is a 
little like JBoss AS hbm service (forgotten what its called) but for Tomcat.


Darryl

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel