Re: Private setters for Ids

2009-06-08 Thread Flominator
Hi there, unfortunately I'm no longer able to reply to http://groups.google.com/group/castle-project-users/browse_thread/thread/48a7b13d7f11b0b1/464bfdd016ad710a so I have to start a new thread. hammet wrote Stub implementations of a repository needs to set the Id. In-memory implementations

Re: Monorail: Action of SmartDispatcherController after Filtering

2009-05-20 Thread Flominator
That's what I call a precise reply. Thank you! Now I've written a filter that refreshes the menu item after the localization filter. On 19 Mai, 16:59, Colin Ramsay colinram...@gmail.com wrote: Why not just do everything in the filter then? On Tue, May 19, 2009 at 3:56 PM, Flominator flomina

Monorail: Action of SmartDispatcherController after Filtering

2009-05-19 Thread Flominator
Hi there, my aim: Localized navigation. I tried it the following way: - wrote an object ViewMenuItem that basically consists of strings representing links and label for the links - get the label texts from a resource manager - display the ViewMenuItem and it's siblings in the view Everything

AR: See inside 1st level cache

2009-05-15 Thread Flominator
Hi there, is there any way to check the contents of the 1st level cache? I'd like to find out what/how many objects are cached there. Thanks, Flo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project

Re: AR: Saving parent but not all children

2009-05-13 Thread Flominator
when it is an identity field. But it is no complete flush, so there is for example no cascade. The common symptom is that you have to call SaveAndFlush() for associated entities which should normally be handled by cascading, but are not due to the early insert. -Markus 2009/5/8 Flominator

Re: AR: How to read configuration properties

2009-05-11 Thread Flominator
= ActiveRecordMediator.GetSessionFactoryHolder(); var nHibernateConfiguration = holder.GetConfiguration( typeof( ActiveRecordBase ) ); nHibernateConfiguration.GetProperty( dialect ) ); Flominator wrote: Hi all, I want to check, whether the database configured at my app.config file is Firebird or not. So I thought I'd simply

AR: What does 'inverse' mean?

2009-05-08 Thread Flominator
Hi again and sorry for posting the next one, what exactly are the consequences of the inverse property mentioned at what exactly does the page http://www.castleproject.org/ActiveRecord/documentation/trunk/usersguide/relations/hasmany.html ? Thanks, Flo

Re: AR: Saving parent but not all children

2009-05-06 Thread Flominator
on Firebird or MSSQL server. Thanks, Flo On May 4, 6:16 pm, Markus Zywitza markus.zywi...@gmail.com wrote: Hi Flo 2009/5/4 Flominator flomina...@gmx.net 1. I have one TransactionScope for every row of data, which means 30 measurands (one for each channel). The method that opens and disposes

Re: AR: Saving parent but not all children

2009-05-04 Thread Flominator
, NH assumes it has to update the entity. 2. Are you using IDENTITY fields? -Markus 2009/4/29 Flominator flomina..@gmx.net Hi Markus, thanks for your reply. I will try it, although my boss has his doubts, since the domain logic requires it the other way round. We have profiled

Profiling AR applications

2009-04-29 Thread Flominator
Hi there, do you have any best practices about profiling AR applications? I've now tried out ANTS, AutomatedQA and Rational Quantify, but got none of them working ... ANTS doesn't seem to show enough information, AutomatedQA closes the application immediatelly and Quantify keeps on throwing

AR: Saving parent but not all children

2009-04-21 Thread Flominator
Hi there, I use AR to store measurands which are in channels which are in a measurement: Part of Measurement.cs: [HasMany(typeof(Channel), Table = Channels, ColumnKey = measurementid, Lazy=true, Cascade = ManyRelationCascadeEnum.AllDeleteOrphan)] private IListChannel Channels Part of

Re: AR: Saving parent but not all children

2009-04-21 Thread Flominator
What should it be then? On Apr 21, 9:47 am, Ayende Rahien aye...@ayende.com wrote: Flominator,A collection that large shouldn't be a collection On Tue, Apr 21, 2009 at 10:42 AM, Flominator flomina.@gmx.net wrote: --~--~-~--~~~---~--~~ You received

Re: AR: Saving parent but not all children

2009-04-21 Thread Flominator
Isn't this solution one directional? On Apr 21, 10:10 am, Ayende Rahien aye...@ayende.com wrote: Remove the collection, make the association one directional On Tue, Apr 21, 2009 at 11:05 AM, Flominator flomina..@gmx.net wrote: What should it be then? On Apr 21, 9:47 am, Ayende

Re: AR: Saving parent but not all children

2009-04-21 Thread Flominator
What do I have left after removing HasMany? Is there any documentation on this? On Apr 21, 10:18 am, Ayende Rahien aye...@ayende.com wrote: Not if you have a collection of them.Remove the HasMany, basically On Tue, Apr 21, 2009 at 11:13 AM, Flominator flomina..@gmx.net wrote: Isn't

Re: BaseControllerTest and logging

2009-04-05 Thread Flominator
I'm also curious to know why you would ever want logging in your tests? Because I sometimes do not only want to find out THAT there goes something wrong, but also WHEN and WHERE it goes wrong. Since I'm quite new to all of this, it might be the wrong approach, though.

Re: Composite indexes

2009-04-02 Thread Flominator
combination should be unique. -Markus 2009/4/1 Flominator flomina.@gmx.net Hi, I'm talking about the following database structure: MEASUREMENTS | --CHANNELS             |              --- MEASURANDS CHANNELS HasMany MEASURANDS via channel_id (int

BaseControllerTest and logging

2009-03-24 Thread Flominator
Hi there, I have some problems with BaseControllerTest vs. Log4net: In my application everything works fine: Log4net is configured and logs everything to a file. The Logger property of the controllers is set at my BaseController class at Initialize(). The model classes get theirs manually in

Re: Private setters for Ids

2009-03-13 Thread Flominator
2009/3/6 Flominator flomina..@gmx.net http://support.castleproject.org/projects/AR/issues/view/AR-ISSUE-237141 Thanks. Do you want me to help with the id thing? On 3 Mrz., 16:55, Markus Zywitza markus.zywi..@gmail.com wrote: I added it to the documentation issue at donjon

Re: Bug in documentation for Validation Component?

2009-03-06 Thread Flominator
; }         }     } } On Fri, Feb 20, 2009 at 9:37 AM, Flominator flomina..@gmx.net wrote: Hi all, the pagehttp://www.castleproject.org/components/validator/index.html112 mentions attribute driven syntax, but I can't find any attributes in the sample domain object. May there be something missing

Re: Private setters for Ids

2009-03-06 Thread Flominator
http://support.castleproject.org/projects/AR/issues/view/AR-ISSUE-237 Thanks. Do you want me to help with the id thing? On 3 Mrz., 16:55, Markus Zywitza markus.zywi...@gmail.com wrote: I added it to the documentation issue at donjon. -Markus 2009/3/3 Flominator flomina.@gmx.net

Re: Navigation links for Pagination not working

2009-03-04 Thread Flominator
@eyal: It seems you can replace HasLast by TotalPages: #if($items.HasPreviousPage ) $PaginationHelper.CreatePageLink( 1, first ) #end #if(!$items.HasPreviousPage ) first #end #if($items.HasPreviousPage ) | $PaginationHelper.CreatePageLink ( $items.PreviousPageIndex, prev ) #end

Re: Menu Component: Javascript problems

2009-03-03 Thread Flominator
was a regular DOM function.  Apparently the correct call for prototype.js is Event.stop(evnt); On Feb 27, 11:07 am, Flominator flomina.@gmx.net wrote: Hi there, I tried downloading the example fromhttp://using.castleproject.org/display/Contrib/Menu+Component88. Finally I got

Private setters for Ids

2009-03-03 Thread Flominator
Hi, some days ago I found out, that Castle doesn't care, if setters, getters or even whole properties were marked as private. Now I wonder why all tutorials on the Castle pages don't declare the setters of id fields as private? Why would anyone want to allow to change the id from within code?

Menu Component: Javascript problems

2009-02-27 Thread Flominator
Hi there, I tried downloading the example from http://using.castleproject.org/display/Contrib/Menu+Component. Finally I got it running. I was even able to include it into my project. But everytime I click a node, I get a JS runtime error that tell me, that the object evnt doesn't support

Bug in documentation for Validation Component?

2009-02-20 Thread Flominator
Hi all, the page http://www.castleproject.org/components/validator/index.html mentions attribute driven syntax, but I can't find any attributes in the sample domain object. May there be something missing on this page? Regards, Flo --~--~-~--~~~---~--~~ You

Re: Fill PropertyBag from BaseController

2009-02-16 Thread Flominator
there? I've not got VS open in front of me so that's a question as much as an answer ;) On Tue, Feb 10, 2009 at 7:59 AM, Flominator flomina..@gmx.net wrote: Hi there, is there any way to fill some fields in the PropertyBag within my BaseController from which all of my controllers

Windsor logging facility

2009-02-10 Thread Flominator
Hi there, yesterday I tried to implement log4net for my controllers. As expected I ran into some problems: 1. When simply using Logger.Debug(bla bla); the property Logger at my controller refers to Castle.Core.Logging.NullLogger 2. When trying the suggestion from

Re: Upgrading RC2 to Trunk

2009-02-09 Thread Flominator
Hi Nicholas, I've upgraded my current case study to trunk some weeks ago. Worked quite well when following http://codeprairie.net/blogs/chrisortman/archive/2008/01/09/catching-up-with-castle-trunk-4710.aspx Best regards, Flo On 10 Feb., 00:21, Nicholas Piasecki nicho...@piasecki.name wrote:

Fill PropertyBag from BaseController

2009-02-09 Thread Flominator
Hi there, is there any way to fill some fields in the PropertyBag within my BaseController from which all of my controllers are inherited? I want to have those feeds available in every Action of every Controller unless I change it there. BaseController itself inherits from

Re: AR: Using nested properties as primary key

2009-02-06 Thread Flominator
of the primarykey thing you are trying to add to the nested object.. On Feb 6, 11:42 am, Flominator flomina..@gmx.net wrote: Not quite sure what your plan is :) My teacher wants me to implement the value object pattern. When I tried putting only [Nested] in SystemUser and putting

Re: AR: Using nested properties as primary key

2009-02-06 Thread Flominator
mId; }                         set { mId = value; }                 } Because if i remember correctly, the value you put into the Nested attribute is used as a prefix for column names. /Mark On Feb 6, 8:24 am, Flominator flomina..@gmx.net wrote: I uploaded it to this google

AR: Using nested properties as primary key

2009-02-04 Thread Flominator
Hi there, I'm trying to use a nested object as primary key. When I try to initialize Active Record I get Could not determine type for: Messweb.Models.SystemUser.SystemUserId, for columns: NHibernate.Mapping.Column(Id) Is there a way to do this or are my attempts futile? Thanks in advance,

Re: Still need AbstractMRTestCase

2009-01-28 Thread Flominator
Tried it with Selenium by following http://danbunea.blogspot.com/2007/01/test-first-web-applications-tdding.html and found out that you better put mSelenium.Start() into [SetUp] instead of [SetUpFixture]. Else every test after the first one will fail with sessionId should not be null; has this

Re: Nvelocity vs. scaffolding

2009-01-27 Thread Flominator
Now using build 1025 and it works :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to this group, send email to castle-project-users@googlegroups.com To unsubscribe from this

Nvelocity vs. scaffolding

2009-01-26 Thread Flominator
Hi again, since I'm quite new to VS08, C# and Castle I started programming by linking to the dll files at C:\Programm Files\Castle Project. Today I wanted to do it better by creating a lib folder within the project directory. I seemed to have found all files necessary, all unit tests were

Re: Nvelocity vs. scaffolding

2009-01-26 Thread Flominator
Forgot to mention: using RC3 Sorry, Flo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to this group, send email to castle-project-users@googlegroups.com To unsubscribe from

Re: AR: FindAllByProperty with LIKE

2009-01-26 Thread Flominator
It worked. Thanks, Mark! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to this group, send email to castle-project-users@googlegroups.com To unsubscribe from this group, send

Shared views

2009-01-20 Thread Flominator
Hi there, while experimenting with Monorail during the last month I received a lot of help at the forum, mainly by user mausch. Now I've finally read the text below the forum link (which I always thought to be some kind of disclaimer) and so I found this mailing list. I'd like to ask a question