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.
拉切尔很喜欢她班级去波士顿水族馆的外出活动。
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.
例如,在用户组会议上演讲或出席客户培训课程可能导致客户的来访。
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?
胡萍:你们班对即将到来的郊游有什么打算?
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时,将会为您生成一个测试。
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.
上星期一,我们班进行了一次有组织的旅游,到森林里去研究野生生物。我们坐公共汽车去的,到森林去花了我们两个半小时。
A cord that is at least five feet long is also good because you're not always going to have a fully charged battery and you won't want to trip people coming into class late.
电源线,至少5英尺长,因为你电池不总充满电,你不会想要绊倒来晚的孩子。
He must be able to prepare for a trip during which every person expects world-class service but for which there are no alternative resources for supplies, staff, or working conditions.
他必须准备一个旅行期间,每个人都希望世界一流的服务,但没有其他资源的供应,人员,或工作条件。
Novelty and challenge will make you happier, and money can pay for a trip to France, for a drawing class, for a mountain bike.
新颖和挑战会让人们更快乐,而钱能支付去法国旅游,参加绘画班,一辆山地自行车。
His class also goes on an annual field trip to a theme park, where students learn how roller coasters are built.
他的课程还要每年到一个主题公园进行一次实地考察,在那里学生们能了解过山车是如何建造的。
Rick: Oh, right. We studied Native American history in seventh grade. My class came here for a field trip?
瑞克:喔,对哦。我们七年级时读过北美原住民的历史,我们班曾来这里做校外教学。
Rick: Oh, right. We studied Native American history in seventh grade. My class came here for a field trip?
瑞克:喔,对哦。我们七年级时读过北美原住民的历史,我们班曾来这里做校外教学。
应用推荐