Listing 3. Adding an Airline property to the Trip class.
清单3.在trip类中添加airline属性。
Going back to the trip planner now, let's revisit the domain model and see if any m: m relationships are lurking around. In the first article, I created a trip class, shown in Listing 1.
现在回到trip - planner应用程序,首先回顾一下域模型,并查看有没有潜在的m: m关系。
Rachel enjoyed the class field trip to the aquarium in Boston.
拉切尔很喜欢她班级去波士顿水族馆的外出活动。
Thanks to the class trip she finally let her son go on, she can grow.
多亏了班级旅行,她终于让她的儿子,她可以继续生长。
Last week one of my kids told me that my friend's youngest son missed out on a ski trip with the rest of his class because of the expense, even though the cost was minimal (to those of us with jobs).
上周,我听孩子告诉我说,这位朋友最小的儿子因为怕花钱,没跟全班同学一起去滑雪,虽然滑雪的费用对于还有工作的人来说并不算多。
Other times, a trip might involve more than one city by design: "I'm flying out to Boston to teach a class Monday through Friday."
有时候一次旅行涉及到多个城市:“我正飞往波士顿,星期一到星期五我要在那里教课。”
For example, presenting at a user group meeting or attending a customer training class may lead to a customer trip.
例如,在用户组会议上演讲或出席客户培训课程可能导致客户的来访。
Our accounting class will organize a trip to the Golden Sea Lake.
我们会计班准备组织到金海湖玩。
Notice that Trip doesn't extend a parent class or implement a magic interface.
注意,Trip并没有扩展某个父类或者实现某个接口。
Type grails generate-all Trip to build out a grails-app/controllers/TripController.groovy class and a matching set of Groovy Server Pages (GSPs) in grails-app/views/Trip.
输入grailsgenerate-all Trip,以构建一个grails-app/controllers/TripController.groovy类,并在 grails-app/views/Trip 中生成一组匹配的GroovyServerPage(GSP)。
John Olson first found fortune as a 13-year-old when he volunteered to sit apart from his classmates on the airplane during a class trip.
JohnOlson13岁时找到人生第一笔财富,在一次班级旅行的飞机上,他自告奋勇地坐在远离同学的座位上。
John Olson first found fortune as a 13-year-old when he volunteered to sit apart from his classmates on the airplane during a class trip. "I ended up in first class," he says.
JohnOlson13岁时找到人生第一笔财富,在一次班级旅行的飞机上,他自告奋勇地坐在远离同学的座位上。
From here, it is possible to round-trip by reversing the transformation (looking in the class attribute for the specializing element name, and renaming the current element to match).
这种情况下可以通过逆反转换返回原来的形式(在class属性中查找专门化元素名并重新命名当前元素以与其匹配)。
“I took one finance class in college but dropped it to go on a ski trip,” says the 45-year-old father of three, who lives in Windsor, Colorado.
“我参加了一个金融班培训,因为一次滑雪旅行而终止培训。”45岁时他成了三个孩子的父亲,住在温莎,科罗拉多州。
Bernard's art class took a trip to the country to learn how to paint landscapes.
伯纳德到乡下去上美术课,学习如何画风景画。
Travel guides to help plan trips and vacations. The site displays several suggested destinations and details trip ideas sorted by family, adventure, beach, first-class, and more.
旅行和度假指导网站,提供旅行建议和依据家庭、探险、海滩、受欢迎程度等进行分类汇总的详细信息。
So only a small crowd, say, a grade school class taking a field-trip to the park, would have to gather around that bench before it became more likely than not that two people shared a birthday.
所以当一小群人——比方说在公园游玩的小学的一个班——聚集在长椅周围时,很可能就有两个人生日相同。
HU PING: What's your class going to do for the coming field trip?
胡萍:你们班对即将到来的郊游有什么打算?
LINDA: Where is your class going for a field trip?
琳达:你们班打算去哪里郊游?
And, like pretty much all these "gurus", he demands a first-class round-trip flight ticket to boot.
像所有的专家,他需要预订一流的往返机票。
In my science class, I discuss how global warming relates to the research trip I recently attended in Alaska with my teacher.
在科学课上,我和老师讨论全球变暖和我最近参加的阿拉斯加研究之旅的联系。
The man gives up looking at the woman--he thinks she may be about twenty-fiveand buys a round-trip, coach class ticket to an eastern city.
他不再看那女人他想她可能有25岁左右然后买了一张到东部一个城市的二等往返机票。
When you typed grails create-domain-class Trip, a test was generated on your behalf.
在输入grailscreate - domain - class Trip时,将会为您生成一个测试。
Change to the trip-planner directory and type grails create-domain-class trip.
进入trip -planner目录,并输入grailscreate - domain - class trip。
Last Monday our class went on an organized trip to a forest to study the wildlife. We travelled by bus. It took us two and a half hours to get to the forest.
上星期一,我们班进行了一次有组织的旅游,到森林里去研究野生生物。我们坐公共汽车去的,到森林去花了我们两个半小时。
Last Monday our class went on an organized trip to a forest to study the wildlife. We travelled by bus. It took us two and a half hours to get to the forest.
上星期一,我们班进行了一次有组织的旅游,到森林里去研究野生生物。我们坐公共汽车去的,到森林去花了我们两个半小时。
应用推荐