• Creating the domain class is only half the battle.

    创建只是成功一半

    youdao

  • The BlogPost is a domain class specific to our system.

    BlogPost我们系统特定一个领域

    youdao

  • In a Grails application, you'd create a domain class for each.

    Grails应用程序中,每个元素创建一个

    youdao

  • Next, I'll add a tiny bit of behavior to my User domain class.

    接下来添加一点点行为user

    youdao

  • Every domain class pairs up with a controller based on the name.

    每个根据名称一个控制器配对

    youdao

  • Here is part of a domain class diagram for a deal capture application.

    下面一个交易描述应用程序部分领域

    youdao

  • In this case, the feature and county columns aren't represented in the domain class.

    这种情况下featurecounty表示中。

    youdao

  • Grails looks for the constraints declarations in the same directory as our domain class.

    Grails领域相同目录下查找约束声明

    youdao

  • We refine the domain class model to capture the perspective at this level of abstraction.

    我们修改模型捕获这个抽象层次上角度

    youdao

  • Table per Type (TPT): This approach suggests a separate table for each domain class.

    这个方式推荐领域创建一个单独

    youdao

  • That way every new domain class created already has the fields and event closures in place.

    这样创建类时它们适当字段事件闭包

    youdao

  • When asked for the domain class name, enter com.jasonrudolph.ejb3example.entity.EmployeeBean.

    询问领域时,输入com.jasonrudolph.ejb3example.entity.EmployeeBean

    youdao

  • You should see the files added (both the domain class and the corresponding integration test).

    此时应该看到添加文件(对应集成测试)。

    youdao

  • As you can see, the unit test for a domain class now (with Grails 1.1) extends GrailsUnitTestCase.

    可以看到现在一个单元测试(Grails 1.1中)扩展了GrailsUnitTestCase

    youdao

  • Using auto completion is a fast way to remember what queries are available for a certain domain class.

    使用自动完成记住什么查询用于特定快捷方法

    youdao

  • This is where you can put the static constraints block that would normally be in the domain class.

    文件中可以放置应该位于域类中的静态constraints

    youdao

  • Grails gives you a place to store commonly used methods that transcend any single domain class: services.

    Grails提供了保存常用方法位置,并且超越任何单个:即服务

    youdao

  • Looking back at the source code of the User domain class in Listing 1, clearly no validate method is defined.

    回头看一下清单1user源代码很明显其中没有定义任何validate方法

    youdao

  • In this version, the domain class (in yellow) includes an interface that defines the semantics of a schedule item.

    版本(黄色部分)包含一个定义日程项目语义界面

    youdao

  • In the subsequent articles, I made changes to the domain class and never had you go back and regenerate the views.

    随后文章中更改domain,但是从未再回过生成视图。

    youdao

  • Note that the GenericDaoHibernateImpl class defines only one constructor that takes a domain class as its argument.

    注意,GenericDaoHibernateImpl定义一个构造函数,构造函数接受作为参数。

    youdao

  • For the purposes of this discussion, I prefix all query names with the short (unqualified) name of the domain class.

    出于讨论目的所有查询名称都加(非限定)名称作为前缀

    youdao

  • The first strategy I'll demonstrate for mapping your domain class to a legacy table is using a static mapping block.

    示范第一个将映射遗留策略使用静态mapping

    youdao

  • This means that every time you create, update, or delete a domain class, the Lucene index is updated accordingly.

    意味着每当创建更新删除一个domain类时Lucene索引都会相应更新。

    youdao

  • Theses clone classes must have the same name than the Domain class (in a different package) and inherits from LazyGwtPojo.

    这些克隆必须使用和本身一样名字(但两者不同包中),并且继承LazyGwtPojo。

    youdao

  • For example, when you save a domain class to a mock table, the id field is populated as it would be in a live application.

    例如一个保存模拟在中时,实际应用程序中一样填充id字段

    youdao

  • In addition to timestamping your domain class, you can tap into four event hooks: beforeInsert, befortUpdate, beforeDelete, and onLoad.

    除了添加时间戳,还可以引入4 个事件挂钩beforeInsertbefortUpdate、beforeDeleteonload

    youdao

  • This method instructs Grails to metaprogram the validation methods onto the specified domain class as it would normally during run time.

    方法指示Grails验证方法元编程指定类上像通常运行所做的一样。

    youdao

  • This time, however, the failure isn't due to the lack of metaprogramming on a domain class. It's due to the lack of dependency injection.

    但是这次失败并不是因为缺少元编程而是因为缺少依赖性注入

    youdao

  • Or do you move all the validation code into the services tier, removing it from the domain class that should be the owner of that knowledge?

    或者可以将所有验证代码移入服务,然后应当是该知识所有者删除吗?

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定