My Account class leverages two JPA annotations.
我的Accoun t类利用了两个jpa注释。
Listing 8 shows a similar implementation of the Account class.
清单8显示了account类的类似实现。
Similarly, the Account class in Listing 10 includes an annotator aspect.
与此类似,清单10中的Accoun t类包括一个注释者方面。
Note that the test doesn't even compile, because the Account class doesn't exist yet.
注意测试甚至不进行编译,因为Account类并不存在。
You now should have an editor open on the Account class, which should have no methods at all.
您现在应在Accoun t类上打开了一个编辑器,它应该无任何方法。
Surprisingly, I can't think of anything for objects of the Account class to do in this system.
令人惊讶的是,我想不出Account类的对象能够在此系统中做什么。
You still have to think, but only about the important things. Your Account class should now look like Listing 5.
您只需要进行思考和考虑重要的事情。
Notice what our code has so far: first, our Account class isn't a bean (it essentially has a getter -- but no setter -- for its one data member).
注意一下目前我们的代码有哪些东西:首先,我们的Account类不是一个bean (实际上,对于它的一个数据成员它有一个getter方法――但是没有setter 方法)。
Field access join points correspond to reads and writes of fields; in this case, an assignment of the name field that is made on the Account class.
字段访问连接点对应着字段的读和写;在这个例子中,在Accoun t类上对name字段进行了赋值。
Showing a default value for attributes is optional; Figure 2 shows a Bank Account class with an attribute called balance, which has a default value of 0.
显示属性默认值是可选择的;图2显示一个银行账户类具有一个名为balance的类型,它的默认值为0。
Since you should be writing tests first, you should have a failing test that tells you what the Account class needs to look like. Your class should look similar to Listing 1.
既然您首先应该编写测试,您就应该有一个失败测试,它会告诉您account类应该是什么样子。
The professor warned the students that on no account should they use mobile phones in his class.
教授警告学生们绝对不要在课堂上玩手机。
These changing constraints tend to get lost in a "monolithic" class diagram that does not take state into account.
这些不断更改的约束在不考虑状态的“单态”类关系图中容易丢失。
Figure 8 shows a class diagram with the abstractions used to model multiple versions of the Account EJB.
图8显示了一个类结构图,其中包含形成Accountejb不同版本的抽象。
The latter accounted for 43% of households in 1950; they now account for just 20%. And the trend has a potent class dimension.
后者在1950年占总家庭数的43%,如今只有20%,且明显趋向于阶级化。
The Scitter class, which holds a username and password for authenticated access to a given Twitter account.
Scitter类,存放一个用户名和密码,用于访问给定Twitter帐户时进行验证。
The <ajax:servervalidator/> example uses the AccountDataService class to check whether the account name or first name/last name combination is unique.
<ajax:servervalidator/>示例使用了 AccountDataService类来检查帐户名或名/姓组合是否惟一。
The Customer class represents customer information and the Account represents the account information for a customer.
Customer类代表客户信息,Account 代表客户的帐户信息。
An account might encapsulate data, but I can't think of any operations that it will perform, thus account is not a proper class.
帐户可能封装数据,但我想不出任何它将执行的操作,因此Account就不是一个合适的类。
The UsernamePasswordToken class implements the AuthenticationToken interface, which provides a way to get credentials and the user's principal (the account identity).
UsernamePasswordToken类实现了 AuthenticationToken接口,它提供了一种获得凭证和用户的主体(帐户身份)的方式。
Your test class now has a protected field called account, and the test method initializes it.
现在您的测试类有一个叫做account的受保护的字段,测试方法对其进行了初始化。
Listing 3 begins by loading the necessary class libraries and defining the user's account credentials.
清单3首先载入必要的类库并定义帐户凭据。
For example, business analysts can use class or object diagrams to model a business's current assets and resources, such as account ledgers, products, or geographic hierarchy.
举例来说,业务分析师可以使用类或对象图,来为当前的资产和资源建模,例如分类账,产品或地理层次。
The project at Bristol University took account of factors such as social class, breastfeeding and maternal education and age.
英国布里斯托尔大学的这一研究项目也考虑了诸如社会阶层、母乳喂养习惯、母亲的受教育程度以及年龄等因素。
You can try Class Pass and you won't have to empty your entire bank account.
你可以尝试自由类课程,这样你就不会花光你银行账户里面所有的钱了。
Rather than duplicate the code that defines and manages these properties, you can create a common Account parent class that has a cash balance, and can handle credit and debit transactions.
与其重复定义和管理这些属性的代码,不如创建一个通用的帐户(account)类,该类具有现金收支平衡并且可以处理借贷事务。
Move the line that initializes account from the test method to setUp , then delete the declaration and initialization from the other test method. Your test class should now look like Listing 8.
将初始化account的代码从测试方法移到setUp,然后删除其它测试方法中的声明和初始化。
Add a method to TestCase that will test the deposit method on Account. The test class should now look like Listing 1.
向TestCase添加一种方法将测试Account的deposit方法。
Add a method to TestCase that will test the deposit method on Account. The test class should now look like Listing 1.
向TestCase添加一种方法将测试Account的deposit方法。
应用推荐