Get Domain-class by its name

alex1970

New member
Hi,
I am currently working with grails 1.3.7 and have a rather strange problem in dealing with domain-classes.
I want to load a Domain-class by its name but did not succeed with the
common way:
Code:
def domainClass = grailsApplication.getArtefact(DomainClassArtefactHandler.TYPE, "Branch")
(returns null)

but if I write
Code:
def domainClass = grailsApplication.getArtefactByLogicalPropertyName(DomainClassArtefactHandler.TYPE,"branch")

for some strange reasons it finds the class

Can anyone tell me if thats a well known grails bug (probably regarding to the recent grails version)

Thanks
 
Top