[flexcoders] Hibernate..

2008-01-18 Thread pradhasan
Hi,

I would like to know for large scale application which one is better 
using HibernateAssembler or SQLAssembler in data-management-config.xml.

Thanks in advance.



RE: [flexcoders] Hibernate..

2008-01-18 Thread Seth Hodgson
If you have an existing server-side domain model and are using Hibernate use 
the HibernateAssembler. If you don't have any current server-side code and just 
want to expose some tables in your database to clients use the SQLAssembler.

It really comes down to whether it makes sense for your client app to be 
interacting with database tables directly, or whether you need be interacting 
with server-side Java classes.

Hope that helps,
Seth


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
pradhasan
Sent: Friday, January 18, 2008 8:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Hibernate..

Hi,

I would like to know for large scale application which one is better 
using HibernateAssembler or SQLAssembler in data-management-config.xml.

Thanks in advance.
 


[flexcoders] hibernate -FDS on tomcat server

2007-12-20 Thread bantisk
I have configured hibernate -FDS on tomcat server.
For that my data-management-config.xml looks like this
?xml version=1.0 encoding=UTF-8?
service id=data-service
class=flex.data.DataService

adapters
adapter-definition id=actionscript
class=flex.data.adapters.ASObjectAdapter default=true/
adapter-definition id=java-dao
class=flex.data.adapters.JavaAdapter/
/adapters

default-channels
channel ref=my-rtmp/
/default-channels

destination id=hibernate-finover
adapter ref=java-dao /
properties
use-transactionstrue/use-transactions
sourceflex.data.assemblers.HibernateAssembler/source
scopeapplication/scope
metadata
identity property=bienm/
/metadata
network
session-timeout20/session-timeout
paging enabled=false pageSize=10 /
throttle-inbound policy=ERROR max-frequency=500/
throttle-outbound policy=REPLACE max-frequency=500/
/network
server
   
hibernate-entitycom.un.itsd.mgt.hibernate.mapping.VwFinBgtMain/hibernate-entity
fill-method
namefill/name
paramsjava.util.List/params
/fill-method
fill-configuration
use-query-cachefalse/use-query-cache
allow-hql-queriestrue/allow-hql-queries
/fill-configuration
/server
/properties
/destination

/service

And services-config.xml is like this;
?xml version=1.0 encoding=UTF-8?
services-config

services
service-include file-path=remoting-config.xml /
service-include file-path=proxy-config.xml /
service-include file-path=messaging-config.xml /
service-include file-path=data-management-config.xml /
/services

security
login-command
class=flex.messaging.security.JRunLoginCommand server=JRun/
!-- Uncomment the correct app server
login-command
class=flex.messaging.security.TomcatLoginCommand server=Tomcat/
login-command
class=flex.messaging.security.WeblogicLoginCommand server=Weblogic/
login-command
class=flex.messaging.security.WebSphereLoginCommand server=WebSphere/
--
security-constraint id=basic-read-access
auth-methodBasic/auth-method
roles
roleguests/role
roleaccountants/role
roleemployees/role
rolemanagers/role
/roles
/security-constraint
/security

channels
channel-definition id=my-amf
class=mx.messaging.channels.AMFChannel
endpoint
url=http://{server.name}:{server.port}/{context.root}/messagebroker/amf;
class=flex.messaging.endpoints.AMFEndpoint/
properties
polling-enabledfalse/polling-enabled
/properties
/channel-definition

channel-definition id=my-secure-amf
class=mx.messaging.channels.SecureAMFChannel
endpoint
url=https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure;
class=flex.messaging.endpoints.SecureAMFEndpoint/
properties
!--HTTPS requests on some browsers do not work when
pragma no-cache are set--
add-no-cache-headersfalse/add-no-cache-headers
/properties
/channel-definition

channel-definition id=my-polling-amf
class=mx.messaging.channels.AMFChannel
endpoint
url=http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling;
class=flex.messaging.endpoints.AMFEndpoint/
properties
polling-enabledtrue/polling-enabled
polling-interval-seconds8/polling-interval-seconds
/properties
/channel-definition

channel-definition id=my-rtmp
class=mx.messaging.channels.RTMPChannel
endpoint url=rtmp://{server.name}:2038
class=flex.messaging.endpoints.RTMPEndpoint/
properties
idle-timeout-minutes20/idle-timeout-minutes
!-- for deployment on WebSphere, must be mapped to a
WorkManager available in the web application's jndi context.
   
websphere-workmanager-jndi-namejava:comp/env/wm/MessagingWorkManager/websphere-workmanager-jndi-name
--
/properties
/channel-definition

channel-definition id=my-http
class=mx.messaging.channels.HTTPChannel
endpoint
url=http://{server.name}:{server.port}/{context.root}/messagebroker/http;
class=flex.messaging.endpoints.HTTPEndpoint/
/channel-definition

channel-definition id=my-secure-http
class=mx.messaging.channels.SecureHTTPChannel
endpoint
url=https://{server.name}:{server.port}/{context.root}/messagebroker/httpsecure;
class=flex.messaging.endpoints.SecureHTTPEndpoint/
properties
 

[flexcoders] Hibernate conflict problem

2007-08-30 Thread Emmanuel Potvin
I have a conflict problem with my application using hibernate with version
columns. 

 

I apply this workaround :

 

http://www.mail-archive.com/flexcoders@yahoogroups.com/msg39026.html

 

(adding 

 

update-conflict-modeNONE/update-conflict-mode

 

In my data-management-config.xml file, but it did nothing! I have the
conflict error anyway, and with a break point on the server I found that its
a DataSyncException on a  version  property. so it looks like the bug
described in the mail, but changing the config file do nothing. why?

 

Maybe I'm using a buged version of flex.

 

Can somebody help me contact this Jeff man who wrote this mail please?

 

Manu



[flexcoders] Hibernate conflict problem

2007-08-30 Thread Emmanuel Potvin
I have a conflict problem with my application using hibernate with version
columns. 

 

I apply this workaround :

 

http://www.mail-archive.com/flexcoders@yahoogroups.com/msg39026.html

 

adding :

 

update-conflict-modeNONE/update-conflict-mode

 

In my data-management-config.xml file, but it did nothing! I have the
conflict error anyway, and with a break point on the server I found that its
a DataSyncException on a  version  property. so it looks like the bug
described in the mail, but changing the config file do nothing. why?

 

Maybe I'm using a buged version of the HibernateAssembler.

 

Can somebody help me contact this Jeff man who wrote this mail please?

 

Manu



[flexcoders] Hibernate AnnotationConfigurations

2007-05-08 Thread Kevin
Does anyone know if the FDS built-in HibernateAssembler can use  
annotations in the Java classes rather than the hbm.xml files?  If we  
do not have to generate/manage hbm.xml files from our annotated  
classes all the better!

Thanks, Kevin


[flexcoders] Hibernate MiddlegenIDE Plugin Install

2007-04-26 Thread Kevin
Has anyone used 'middlegenide' with Ecplise to generate Hibernate  
Mapping files?

http://sourceforge.net/project/showfiles.php?group_id=36044

Seems like this would be an easy way to map an existing database to  
Hibernate for use in FDS.  Seems better than Hibernate-tools which  
doesn't support reverse engineering of foreign keys.

However, I can't for the life of me figure out how to install this  
plug-in!  I have never installed a plug-in in Eclipse without using  
the Find  Install feature.

Anyone know how to install this?

- Kevin


[flexcoders] Hibernate Transactions Roles

2007-04-23 Thread Kevin
I am trying to build a Hibernate enabled app (with Flex Data  
Services) but I am wondering how do deal with certain requirements of  
my app.

For example, I employ a root object table which contains all ids (and  
some admin vars) for every table in my app.  Every data table has a  
one-to-one relationship with this root table and thus every insert  
includes a transactional update of both the data table  the root  
object table.

Is this something that can be done easily with FDS  Hibernate while  
still be able to use the simple 'commit' command on the client side?

My other questions is how I can check certain user roles before  
performing database operations?  For example, if the client tries to  
do a DataServices commit to the database and that logged in user  
does not have the proper user role to do that operation, the request  
will be rejected at the server.

I love how simple the DataServices functions are, but does that mean  
that it is hard to add functionality to these low level operations?

I currently am successfully using PHP to manage my database on the  
server (using AMFPHP).  The main reason I would like to switch to  
Java/Hibernate is to take advantage of data pushing which could be  
very useful for my use case.  To my knowledge there is not a way to  
do this with PHP.  I hate to switch everything over if I don't have  
to, but...for what I gain it might be worth it.

Thanks for the the help.  There is very little documentation that I  
can find on customizing DataServices/Hibernate's integration with  
Flex...

- Kevin



[flexcoders] Hibernate error:java.lang.NoSuchMethodError:org.hibernate.Session.getTransaction

2007-02-06 Thread John Briere
Hi - I'm new to Flex. I'm trying to move an existing Java Hibernate
application over to have a fully Flex front end. The first thing I'm
trying to do is get access to all my database objects through the
Hibernate Assembler. I've got my Java code loading, the destination
set up, etc, following the example app at
http://blogs.adobe.com/mtg/2006/08/my_first_hibernate_enabled_fle.html

I've replaced the code in the sample app where necessary to point to
my own database object.

When I start the app, I get the following error in the server console:


Throwable in RtmpReader thread: java.lang.NoSuchMethodError:
org.hibernate.Session.getTransaction()Lorg/hibernate/Transaction;
java.lang.NoSuchMethodError:org.hibernate.Session.getTransaction()Lorg/hibernat
e/Transaction;
at
flex.data.assemblers.HibernateManager.getSession(HibernateManager.jav
a:97)
at
flex.data.assemblers.HibernateAssembler.fill(HibernateAssembler.java:
339)
at
flex.data.adapters.JavaAdapter.invokeFillOperation(JavaAdapter.java:7
48)
at flex.data.adapters.JavaAdapter.invoke(JavaAdapter.java:198)
at
flex.messaging.services.MessageService.serviceMessage(MessageService.
java:139)
at flex.data.DataService.serviceMessage(DataService.java:309)
at
flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java
:548)
at
flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndp
oint.java:302)
at
flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage(Abst
ractRTMPServer.java:682)
at
flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTM
PConnection.java:665)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
ker.runTask(ThreadPoolExecutor.java:665)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
ker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:595)

and I catch ClientError:DeliveryInDoubt fault at the same time. Does
anyone have any ideas? 
Thanks - John Briere



[flexcoders] hibernate + cusome querries

2007-01-03 Thread michalzak81
Could some one show me an example of how I can run custom queries with
hibernate from flex.




[flexcoders] hibernate + many-to-many + inserting records

2006-12-20 Thread michalzak81
At this point, I have hibernate working with a many-to-many relationship
Here is what I have

User Table - one-to-many - user_roles Table - many-to-one - roles
table

The retrieval of the records works fine.  I can also modify and insert
the records with no hassle. 

But my problems come when I need to insert a relationship ( a record
into the user_roles table ).  The Hibernate generated code only has
classes for the other 2 tables, it manages the middle table on its own.

Could someone please point me into the right direction as to how that
should be done.



Re: [flexcoders] hibernate + many-to-many + inserting records

2006-12-20 Thread Douglas McCarroll
Hi,

I'm still struggling with a many-to-many example that I'm creating, but 
seeing what I've done so far may be helpful to you. My .java and 
.hbm.xml files were auto-created using HibernateTools (with a few 
tweaks) and contain files for the middle table. While I don't know 
Hibernate very well, I assume that HibernateTools knows what it is 
doing, so I assume that this code is correct.  (?)

You can find the entire zipped project here:

http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/Bw_005.zip

And here's the thread on the problems I'm having with it:

http://tech.groups.yahoo.com/group/flexcoders/message/58833

Also, this blog post by Victor Rubba may be helpful:

http://viconflex.blogspot.com/2006/12/many-to-many-using-fds-hibernate.html

Finally, my Flex with Java page might be of some interest:

http://www.brightworks.com/technology/adobe_flex/with_java.html

Good luck! When you find a solution, please consider blogging about it.  :-)


Douglas


-

Douglas McCarroll

CairngormDocs.org Webmaster
http://www.CairngormDocs.org

Flex Developer
http://www.brightworks.com
617.459.3840

-








michalzak81 wrote:

 At this point, I have hibernate working with a many-to-many relationship
 Here is what I have

 User Table - one-to-many - user_roles Table - many-to-one - roles
 table

 The retrieval of the records works fine. I can also modify and insert
 the records with no hassle.

 But my problems come when I need to insert a relationship ( a record
 into the user_roles table ). The Hibernate generated code only has
 classes for the other 2 tables, it manages the middle table on its own.

 Could someone please point me into the right direction as to how that
 should be done.

  



[flexcoders] Hibernate adapter: No channels are available for use

2006-05-01 Thread Christopher Sharon



I'm trying to get the hibernate adapter to work with fds by testing out 
2 tables from my database.
The two tables represent the make and model of a car.
Hibernate and fds seem to start up fine, the *.hbm.xml files are found but
I receive the following message.

Error: No Channels are available for use. 

Anyone have any pointers? or is there a working example of how to use 
fds with hibernate?


I have the following config:


Environment:
 Jdk 1.5.0_06
 JBoss 4.0.3sp1 with tomcat 5.5
 Hibernate 3.0.5
 FDS B2
 PostgreSQL 8.1.3
 Win xp pro sp2

flex-enterprise-services.xml -

?xml version=1.0 encoding=UTF-8?
services-config xmlns=http://www.macromedia.com/2005/flex-service-config
 services
 service-include file-path=flex-remoting-service.xml /
 service-include file-path=flex-proxy-service.xml /
 service-include file-path=flex-message-service.xml /
 service-include file-path=flex-data-service.xml /
 /services
 security
 login-command 
class=flex.messaging.security.TomcatLoginCommand server=Tomcat/
 /security
 channels
 channel-definition id=my-amf 
class=mx.messaging.channels.AMFChannel
 endpoint 
uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amf 
class=flex.messaging.endpoints.AMFEndpoint/
 properties
 polling-enabledfalse/polling-enabled
 /properties
 /channel-definition

 channel-definition id=my-secure-amf 
class=mx.messaging.channels.SecureAMFChannel
 endpoint 
uri=http://{server.name}:9100/{context.root}/messagebroker/amfsecure 
class=flex.messaging.endpoints.AMFEndpoint/
 /channel-definition

 channel-definition id=my-polling-amf 
class=mx.messaging.channels.AMFChannel
 endpoint 
uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling 
class=flex.messaging.endpoints.AMFEndpoint/
 properties
 polling-enabledtrue/polling-enabled
 polling-interval-seconds8/polling-interval-seconds
 page-size50/page-size
 packet-size30KB/packet-size
 /properties
 /channel-definition

 channel-definition id=my-rtmp 
class=mx.messaging.channels.RTMPChannel
 endpoint 
uri=rtmp://{server.name}:2038/{context.root}/rtmp 
class=flex.messaging.endpoints.RTMPEndpoint/
 properties
 idle-timeout-minutes20/idle-timeout-minutes
 client-to-server-maxbps100K/client-to-server-maxbps
 server-to-client-maxbps100K/server-to-client-maxbps
 page-size50/page-size
 packet-size30KB/packet-size
 /properties
 /channel-definition
 channel-definition id=my-http 
class=mx.messaging.channels.HTTPChannel
 endpoint 
uri=http://{server.name}:{server.port}/{context.root}/messagebroker/http 
class=flex.messaging.endpoints.HTTPEndpoint/
 /channel-definition

 channel-definition id=my-secure-http 
class=mx.messaging.channels.SecureHTTPChannel
 endpoint 
uri=https://{server.name}:9100/{context.root}/messagebroker/httpsecure 
class=flex.messaging.endpoints.HTTPEndpoint/
 /channel-definition
 /channels

 logging

 target class=flex.messaging.log.ConsoleTarget level=Error
 properties
 prefix[Flex] /prefix
 includeDatefalse/includeDate
 includeTimefalse/includeTime
 includeLevelfalse/includeLevel
 includeCategoryfalse/includeCategory
 /properties
 filters
 patternEndpoint.*/pattern
 patternService.*/pattern
 patternConfiguration/pattern
 !-- patternMessage.*/pattern --
 /filters
 /target

 /logging

 system
 locale
 default-localeen/default-locale
 supported-localede/supported-locale
 supported-localefr/supported-locale
 supported-localees/supported-locale
 /locale
 
 redeploy
 enabledtrue/enabled
 watch-interval20/watch-interval
 
watch-file{context.root}/WEB-INF/flex/flex-enterprise-services.xml/watch-file
 
watch-file{context.root}/WEB-INF/flex/flex-proxy-service.xml/watch-file
 
watch-file{context.root}/WEB-INF/flex/flex-remoting-service.xml/watch-file
 
watch-file{context.root}/WEB-INF/flex/flex-message-service.xml/watch-file
 
watch-file{context.root}/WEB-INF/flex/flex-data-service.xml/watch-file
 touch-file{context.root}/WEB-INF/web.xml/touch-file
 /redeploy 
 /system

/services-config





flex-data-service.xml -

?xml version=1.0 encoding=UTF-8?
service id=data-service class=flex.data.DataService 
messageTypes=flex.data.messages.DataMessage
 destination id=Make
 adapter ref=hibernate /
 properties
 metadata
 identity property=oidmake/
 /metadata
 network
 session-timeout20/session-timeout
 paging enabled=false size=10 /
 throttle-inbound policy=ERROR max-frequency=500/
 throttle-outbound policy=REPLACE max-frequency=500/
 /network
 server
 
hibernate-entitycom.marketplacellc.db.vo.Make/hibernate-entity
 update-conflict-modePROPERTY/update-conflict-mode
 delete-conflict-modeOBJECT/delete-conflict-mode
 fill-configuration
 query-typeHQL/query-type
 use-query-cachefalse/use-query-cache
 use-pagingfalse/use-paging
 /fill-configuration
 /server
 /properties
 /destination
 adapters
 adapter-definition id=actionscript 
class=flex.data.adapters.ASObjectAdapter/
 adapter-definition id=java-dao 
class=flex.data.adapters.JavaAdapter/
 adapter-definition id=hibernate 
class=flex.data.adapters.HibernateAdapter 

RE: [flexcoders] Hibernate 3

2005-05-17 Thread Dimitrios Gianninas





Haven't done it yet... been 
using Hibernate 2.1.8 for now in the integration layer with Flex as the 
presentation layer. It shouldn't be any different. What problem are you 
experiencing?

Dimitrios "Jimmy" Gianninas
RIADeveloper
Optimal Payments Inc.



From: Rich Tretola [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 16, 2005 12:19 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Hibernate 
3
Has anyone been able to get data using Hibernate 3 
?Rich







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Hibernate 3

2005-05-16 Thread Rich Tretola
Has anyone been able to get data using Hibernate 3 ?

Rich


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Hibernate

2005-04-14 Thread Ryan Scott Jones










Hi Steve,



Thanks for the help. I have all of my
collections mapped as lazy=false. Everything Ive tried
ends with:



- could not initialize proxy - the owning
Session was closed

org.hibernate.LazyInitializationException:
could not initialize proxy - the owning Session was closed



Any idea what I might be forgetting?



Ryan











From: Steven Shaw
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 7:22 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Hibernate





You will want to watch your server log closely as you probably are
getting errors in there about lazy instantiation. Putting lazy=true
in your mapping file does not guarantee that the association will be
instantiated. It depends in max-fetch-depth and perhaps other things. You could
try using Hibernate.initialize(collection) to ensure it is initialised
before allowing AMF to get at it.

Steve.












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] Hibernate

2005-04-14 Thread Harris Reynolds

Ryan,

I'd suggest that you post some of your hibernate code
here [1] with the same question.  You'll get a lot
better Hibernate support there.

That said, one important thing to keep in mind from
the Flex perspective is your service interface.  You
should design the integration point as a
course-grained service that does as much work on the
server as possible (instead of lots and lots of
service calls, wrap all that logic behind one clean
service point).  This is a fairly well known pattern
for web services.

I have seen services before that exposed lots of
CRUD/database operations that don't provide a clean
layering in the application and caused serious pain
when integrating with Flex (imagine lots of
synchronous calls... possible, but painful).

hope that helps,

~harris


[1] http://forum.hibernate.org/


--- Ryan Scott Jones [EMAIL PROTECTED] wrote:
 Hi Steve,
 
  
 
 Thanks for the help.  I have all of my collections
 mapped as lazy=false.
 Everything I've tried ends with:
 
  
 
 - could not initialize proxy - the owning Session
 was closed
 
 org.hibernate.LazyInitializationException: could not
 initialize proxy - the
 owning Session was closed
 
  
 
 Any idea what I might be forgetting?
 
  
 
 Ryan
 
  
 
   _  
 
 From: Steven Shaw [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, April 12, 2005 7:22 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Hibernate
 
  
 
 You will want to watch your server log closely as
 you probably are getting
 errors in there about lazy instantiation. Putting
 lazy=true in your
 mapping file does not guarantee that the association
 will be instantiated.
 It depends in max-fetch-depth and perhaps other
 things. You could try using
 Hibernate.initialize(collection) to ensure it is
 initialised before
 allowing AMF to get at it.
 
 Steve.
 
 
 
   _  
 
 Yahoo! Groups Links
 
 * To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
   
 * To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]

mailto:[EMAIL PROTECTED]
 
   
 * Your use of Yahoo! Groups is subject to the Yahoo!
 http://docs.yahoo.com/info/terms/  Terms of
 Service. 
 
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Hibernate

2005-04-12 Thread Ryan Scott Jones

Apologies if this has been covered already ...

Does anyone know of an in depth tutorial on integrating Hibernate and Flex?
Have people been using Hibernate successfully with Flex?  I'm about a week
into creating an application and it's doing my head in.  Flat objects work
just fine for me, but anything deeper than that (e.g., objects containing
arrays of objects) just hangs on the RPC call, even with lazy=false.  I'm
sure I'm doing something stupid, I just haven't been able to diagnose what
that stupid thing I'm doing is.

I read the ONJava article:
http://www.onjava.com/pub/a/onjava/2004/12/01/flexjava.html?page=1 and
thought it was rather brief.  If anyone knows of anything more detailed, I'd
love to read it.

Thanks!
Ryan


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Hibernate

2005-04-12 Thread Steven Shaw



You will want to watch your server log closely as you probably are
getting errors in there about lazy instantiation. Putting lazy=true
in your mapping file does not guarantee that the association will be
instantiated. It depends in max-fetch-depth and perhaps other things.
You could try using Hibernate.initialize(collection) to ensure
it is initialised before allowing AMF to get at it.

Steve.








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.